From ac37a352ea5741d61abc474001b5d3d59b5ed8e5 Mon Sep 17 00:00:00 2001 From: jusax23 Date: Fri, 2 Jun 2023 13:04:50 +0200 Subject: [PATCH] floating next button --- lib/learn.dart | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/learn.dart b/lib/learn.dart index b03de55..320f4ca 100644 --- a/lib/learn.dart +++ b/lib/learn.dart @@ -148,6 +148,12 @@ class _QuizPageState extends State { ], ), ), + floatingActionButton: askState != -1 + ? FloatingActionButton.extended( + onPressed: _nextQuestion, + icon: const Icon(Icons.chevron_right), + label: const Text("Next")) + : null, ); } }