flutter_form_wizard/example/lib/example_pages/thanks_page.dart
2022-09-20 11:04:00 +02:00

29 lines
701 B
Dart

import 'package:flutter/material.dart';
class ThanksPage extends StatelessWidget {
const ThanksPage({super.key});
@override
Widget build(BuildContext context) {
return Scaffold(
body: Center(
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
const Text(
"Thanks for filling in the form!",
style: TextStyle(fontSize: 20),
),
const SizedBox(
height: 20,
),
ElevatedButton(
onPressed: () => Navigator.of(context).pushNamed('/'),
child: const Text("Next"))
],
),
),
);
}
}