Skip to content

Commit

Permalink
Improve settings dialog a bit
Browse files Browse the repository at this point in the history
  • Loading branch information
Feichtmeier committed Jun 1, 2022
1 parent b838fc0 commit 0ede7e4
Showing 1 changed file with 21 additions and 10 deletions.
31 changes: 21 additions & 10 deletions lib/pages/settings/settings_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,26 @@ class SettingsPage extends StatelessWidget {

@override
Widget build(BuildContext context) {
return YaruPage(children: [
YaruRow(
trailingWidget: const Text('Software'),
actionWidget: TextButton(
onPressed: () => showAboutDialog(context: context),
child: const Text('Show About Dialog')),
enabled: true,
width: 500,
)
]);
return Navigator(
onGenerateRoute: (settings) {
return MaterialPageRoute(
builder: (context) {
return YaruPage(children: [
YaruRow(
trailingWidget: const Text('Software v0.0.1-alpha'),
actionWidget: TextButton(
onPressed: () {
showAboutDialog(
context: context, useRootNavigator: false);
},
child: const Text('About')),
enabled: true,
width: 500,
)
]);
},
);
},
);
}
}

0 comments on commit 0ede7e4

Please sign in to comment.