1
0
mirror of https://github.com/flutter/samples.git synced 2026-04-27 09:58:50 +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

@@ -195,7 +195,6 @@ class _NavigationRailHeader extends StatelessWidget {
children: [
const SizedBox(width: 6),
InkWell(
key: const ValueKey('ReplyLogo'),
borderRadius: const BorderRadius.all(Radius.circular(16)),
onTap: () {
extended.value = !extended.value!;
@@ -323,7 +322,15 @@ class _NavigationRailTrailingSection extends StatelessWidget {
void _onTapped(BuildContext context, String key) {
switch (key) {
case 'About':
showAboutDialog(context: context);
showAboutDialog(
context: context,
applicationIcon: const FlutterLogo(),
children: [
const Text(
'A tool that helps you manage linter rules for your Flutter projects.',
),
],
);
break;
default:
break;

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