1
0
mirror of https://github.com/flutter/samples.git synced 2025-11-10 06:48:26 +00:00

Remove unneeded types (#949)

This commit is contained in:
Ahmed Ashour
2021-11-03 17:58:12 +01:00
committed by GitHub
parent 64805fe5b6
commit 29339b8334
30 changed files with 54 additions and 55 deletions

View File

@@ -233,7 +233,7 @@ class SettingsScreen extends StatelessWidget {
content: const Text(
'Are you sure you want to reset the current settings?',
),
actions: <Widget>[
actions: [
CupertinoDialogAction(
isDestructiveAction: true,
child: const Text('Yes'),
@@ -266,7 +266,7 @@ class SettingsScreen extends StatelessWidget {
Styles.scaffoldBackground(CupertinoTheme.brightnessOf(context)),
child: CustomScrollView(
restorationId: 'list',
slivers: <Widget>[
slivers: [
const CupertinoSliverNavigationBar(
largeTitle: Text('Settings'),
),
@@ -274,7 +274,7 @@ class SettingsScreen extends StatelessWidget {
top: false,
sliver: SliverList(
delegate: SliverChildListDelegate(
<Widget>[
[
SettingsGroup(
items: [
_buildCaloriesItem(context, prefs),