mirror of
https://github.com/flutter/samples.git
synced 2025-11-08 22:09:06 +00:00
[linting_tool] Prepare for release (#880)
This commit is contained in:
committed by
GitHub
parent
0aad30fc5b
commit
410e43fbc1
@@ -177,6 +177,8 @@ class _ProfileTypeDialog extends StatelessWidget {
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
var profilesStore = context.watch<ProfilesStore>();
|
||||
|
||||
return AlertDialog(
|
||||
actionsPadding: const EdgeInsets.only(
|
||||
left: 16.0,
|
||||
@@ -185,17 +187,18 @@ class _ProfileTypeDialog extends StatelessWidget {
|
||||
),
|
||||
title: const Text('Select Profile Type'),
|
||||
actions: [
|
||||
ElevatedButton(
|
||||
onPressed: () {
|
||||
Navigator.pop(context, ProfileType.existingProfile);
|
||||
},
|
||||
child: const Text('Existing Profile'),
|
||||
),
|
||||
if (profilesStore.savedProfiles.isNotEmpty)
|
||||
ElevatedButton(
|
||||
onPressed: () {
|
||||
Navigator.pop(context, ProfileType.existingProfile);
|
||||
},
|
||||
child: const Text('Existing'),
|
||||
),
|
||||
TextButton(
|
||||
onPressed: () {
|
||||
Navigator.pop(context, ProfileType.newProfile);
|
||||
},
|
||||
child: const Text('Create new profile'),
|
||||
child: const Text('New'),
|
||||
),
|
||||
],
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user