mirror of
https://github.com/flutter/samples.git
synced 2025-11-08 13:58:47 +00:00
[platform_design] fix: Polished LogOut dialog (#367)
* fix: Polished LogOut dialog * dart fmt
This commit is contained in:
@@ -160,8 +160,8 @@ class PreferenceCard extends StatelessWidget {
|
|||||||
}
|
}
|
||||||
|
|
||||||
class LogOutButton extends StatelessWidget {
|
class LogOutButton extends StatelessWidget {
|
||||||
static const _logoutMessage =
|
static const _logoutMessage = Text(
|
||||||
Text('You may check out any time you like, but you can never leave');
|
"You can't actually log out! This is just a demo of how alerts work.");
|
||||||
|
|
||||||
// ===========================================================================
|
// ===========================================================================
|
||||||
// Non-shared code below because this tab shows different interfaces. On
|
// Non-shared code below because this tab shows different interfaces. On
|
||||||
@@ -186,7 +186,7 @@ class LogOutButton extends StatelessWidget {
|
|||||||
content: _logoutMessage,
|
content: _logoutMessage,
|
||||||
actions: [
|
actions: [
|
||||||
FlatButton(
|
FlatButton(
|
||||||
child: const Text('Go back'),
|
child: const Text('Got it'),
|
||||||
onPressed: () => Navigator.pop(context),
|
onPressed: () => Navigator.pop(context),
|
||||||
),
|
),
|
||||||
FlatButton(
|
FlatButton(
|
||||||
@@ -221,7 +221,7 @@ class LogOutButton extends StatelessWidget {
|
|||||||
onPressed: () => Navigator.pop(context),
|
onPressed: () => Navigator.pop(context),
|
||||||
),
|
),
|
||||||
CupertinoActionSheetAction(
|
CupertinoActionSheetAction(
|
||||||
child: const Text('Go back'),
|
child: const Text('Got it'),
|
||||||
onPressed: () => Navigator.pop(context),
|
onPressed: () => Navigator.pop(context),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
|
|||||||
Reference in New Issue
Block a user