Skip to content

Commit

Permalink
another attempt
Browse files Browse the repository at this point in the history
  • Loading branch information
waozixyz committed Nov 24, 2023
1 parent 35db5bd commit b8d40be
Showing 1 changed file with 34 additions and 36 deletions.
70 changes: 34 additions & 36 deletions lib/screens/results_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -108,47 +108,45 @@ class _ResultsScreenState extends State<ResultsScreen> {
),
],
),
),
),
bottomNavigationBar: BottomAppBar(
color: Colors.transparent,
child: Padding(
padding: EdgeInsets.only(bottom: 16.0),
child: SizedBox(
height: 84,
child: Column(
mainAxisSize: MainAxisSize.min,
children: [
SizedBox(
height: 42,
child: SwitchListTile(
title: Text("Save Progress"),
value: saveProgress,
onChanged: (rounds > 0)
? (bool value) {
setState(() {
saveProgress = value;
});
}
: null,
activeColor: Colors.teal,
),
child: SizedBox(
height: 104, // Increase the height to create padding under the 'Close' button
child: Column(
mainAxisSize: MainAxisSize.min,
children: [
SizedBox(
height: 42,
child: SwitchListTile(
title: Text("Save Progress"),
value: saveProgress,
onChanged: (rounds > 0)
? (bool value) {
setState(() {
saveProgress = value;
});
}
: null,
activeColor: Colors.teal,
),
SizedBox(
width: double.infinity,
height: 42,
child: TextButton(
onPressed: () {
_handleClose();
context.go('/home');
},
child: Text(
'Close',
style: BreezeStyle.bodyBig
),
),
SizedBox(
width: double.infinity,
height: 42,
child: TextButton(
onPressed: () {
_handleClose();
context.go('/home');
},
child: Text(
'Close',
style: BreezeStyle.bodyBig
),
),
],
),
),
SizedBox(height: 20), // Additional padding under the 'Close' button
],
),
),
),
Expand Down

0 comments on commit b8d40be

Please sign in to comment.