forked from firka/flutter
add missing trailing commas in list/set/map literals (#102585)
This commit is contained in:
committed by
GitHub
parent
0b80f08cf0
commit
07f1c20474
@@ -41,7 +41,7 @@ class MyStatelessWidget extends StatelessWidget {
|
||||
style: style,
|
||||
onPressed: () {},
|
||||
child: const Text('Action 2'),
|
||||
)
|
||||
),
|
||||
],
|
||||
),
|
||||
);
|
||||
|
||||
@@ -49,7 +49,7 @@ class MyStatelessWidget extends StatelessWidget {
|
||||
ElevatedButton(
|
||||
child: const Text('Close BottomSheet'),
|
||||
onPressed: () => Navigator.pop(context),
|
||||
)
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
|
||||
@@ -51,7 +51,7 @@ class _MyStatefulWidgetState extends State<MyStatefulWidget> {
|
||||
});
|
||||
},
|
||||
),
|
||||
Text('Volume : $_volume')
|
||||
Text('Volume : $_volume'),
|
||||
],
|
||||
);
|
||||
}
|
||||
|
||||
@@ -140,7 +140,7 @@ class CustomListItemTwo extends StatelessWidget {
|
||||
readDuration: readDuration,
|
||||
),
|
||||
),
|
||||
)
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
|
||||
@@ -267,7 +267,7 @@ class _HomeState extends State<Home> with TickerProviderStateMixin<Home> {
|
||||
Destination(0, 'Teal', Icons.home, Colors.teal),
|
||||
Destination(1, 'Cyan', Icons.business, Colors.cyan),
|
||||
Destination(2, 'Orange', Icons.school, Colors.orange),
|
||||
Destination(3, 'Blue', Icons.flight, Colors.blue)
|
||||
Destination(3, 'Blue', Icons.flight, Colors.blue),
|
||||
];
|
||||
|
||||
late final List<GlobalKey<NavigatorState>> navigatorKeys;
|
||||
|
||||
@@ -83,7 +83,7 @@ class _MyNavigationRailState extends State<MyNavigationRail> {
|
||||
],
|
||||
),
|
||||
),
|
||||
)
|
||||
),
|
||||
],
|
||||
);
|
||||
}
|
||||
|
||||
@@ -84,7 +84,7 @@ class _MyMenuBarAppState extends State<MyMenuBarApp> {
|
||||
onSelected: () {
|
||||
_handleMenuSelection(MenuSelection.about);
|
||||
},
|
||||
)
|
||||
),
|
||||
],
|
||||
),
|
||||
PlatformMenuItemGroup(
|
||||
@@ -118,7 +118,7 @@ class _MyMenuBarAppState extends State<MyMenuBarApp> {
|
||||
},
|
||||
),
|
||||
],
|
||||
)
|
||||
),
|
||||
],
|
||||
),
|
||||
if (PlatformProvidedMenuItem.hasMenu(PlatformProvidedMenuItemType.quit))
|
||||
|
||||
@@ -65,7 +65,7 @@ class _MyStatefulWidgetState extends State<MyStatefulWidget> {
|
||||
value: Menu.itemFour,
|
||||
child: Text('Item 4'),
|
||||
),
|
||||
])
|
||||
]),
|
||||
],
|
||||
),
|
||||
body: Center(
|
||||
|
||||
@@ -53,7 +53,7 @@ class MyScaffoldBody extends StatelessWidget {
|
||||
onPressed: () {
|
||||
Navigator.pop(context);
|
||||
},
|
||||
)
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
|
||||
@@ -53,7 +53,7 @@ class MyStatelessWidget extends StatelessWidget {
|
||||
onPressed: () {
|
||||
Navigator.pop(context);
|
||||
},
|
||||
)
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
|
||||
@@ -46,10 +46,11 @@ class MyStatelessWidget extends StatelessWidget {
|
||||
children: <Widget>[
|
||||
const Text('BottomSheet'),
|
||||
ElevatedButton(
|
||||
child: const Text('Close BottomSheet'),
|
||||
onPressed: () {
|
||||
Navigator.pop(context);
|
||||
})
|
||||
child: const Text('Close BottomSheet'),
|
||||
onPressed: () {
|
||||
Navigator.pop(context);
|
||||
},
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user