`next_gen_ui_demo`: Add restart button (#1835)

pull/1839/head
Brett Morgan 2 years ago committed by GitHub
parent 0b2c5f8c0f
commit 2ca81b3891
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -129,6 +129,24 @@ class _NextGenAppState extends State<NextGenApp> {
}, },
), ),
), ),
Visibility(
visible: step + 1 == steps.length,
child: Row(
mainAxisSize: MainAxisSize.min,
children: [
const Gap(24),
FloatingActionButton(
child: const Icon(Icons.restart_alt),
onPressed: () {
setState(() {
step = 0;
debugPrint('Step = $step');
});
},
),
],
),
),
], ],
), ),
backgroundColor: Colors.black, backgroundColor: Colors.black,

Loading…
Cancel
Save