1
0
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:
Abdullah Deshmukh
2021-08-23 16:26:55 -07:00
committed by GitHub
parent 0aad30fc5b
commit 410e43fbc1
22 changed files with 117 additions and 47 deletions

View File

@@ -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'),
),
],
);