Skip to content

Commit a3dc90c

Browse files
authored
Add space before curly parentheses. (flutter#85306)
1 parent 76db0d7 commit a3dc90c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+75
-75
lines changed

dev/benchmarks/macrobenchmarks/lib/src/cull_opacity.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class _CullOpacityPageState extends State<CullOpacityPage> with SingleTickerProv
2424
// This code uses a manual listener for historical reasons and will remain
2525
// in order to preserve compatibility with the history of measurements for
2626
// this benchmark.
27-
_offsetY = Tween<double>(begin: 0, end: -1000.0).animate(_controller)..addListener((){
27+
_offsetY = Tween<double>(begin: 0, end: -1000.0).animate(_controller)..addListener(() {
2828
setState(() {});
2929
});
3030
_controller.repeat();

dev/integration_tests/ios_add2app_life_cycle/flutterapp/lib/main.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ class _LifeCycleSpyState extends State<LifeCycleSpy> with WidgetsBindingObserver
4444
List<AppLifecycleState?>? _actualLifeCycleSequence;
4545

4646
@override
47-
void initState(){
47+
void initState() {
4848
super.initState();
4949
WidgetsBinding.instance?.addObserver(this);
5050
_actualLifeCycleSequence = <AppLifecycleState?>[

dev/tools/gen_keycodes/lib/logical_key_data.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ class LogicalKeyData {
370370
}();
371371

372372
/// Returns the static map of printable representations.
373-
static late final Map<String, String> printable = ((){
373+
static late final Map<String, String> printable = (() {
374374
final String printableKeys = File(path.join(dataRoot, 'printable.json',)).readAsStringSync();
375375
return (json.decode(printableKeys) as Map<String, dynamic>)
376376
.cast<String, String>();
@@ -389,7 +389,7 @@ class LogicalKeyData {
389389
/// These include synonyms for keys which don't have printable
390390
/// representations, and appear in more than one place on the keyboard (e.g.
391391
/// SHIFT, ALT, etc.).
392-
static late final Map<String, List<String>> synonyms = ((){
392+
static late final Map<String, List<String>> synonyms = (() {
393393
final String synonymKeys = File(path.join(dataRoot, 'synonyms.json',)).readAsStringSync();
394394
final Map<String, dynamic> dynamicSynonym = json.decode(synonymKeys) as Map<String, dynamic>;
395395
return dynamicSynonym.map((String name, dynamic values) {

dev/tools/gen_keycodes/lib/physical_key_data.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ class PhysicalKeyEntry {
364364
/// the name from the various different names available, making sure that the
365365
/// name isn't a Dart reserved word (if it is, then it adds the word "Key" to
366366
/// the end of the name).
367-
late final String constantName = ((){
367+
late final String constantName = (() {
368368
String? result;
369369
if (name.isEmpty) {
370370
// If it doesn't have a DomKey name then use the Chromium symbol name.

packages/flutter/lib/src/cupertino/date_picker.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1986,7 +1986,7 @@ class _CupertinoTimerPickerState extends State<CupertinoTimerPicker> {
19861986
// label on top of it.
19871987
List<Widget> columns;
19881988

1989-
if (widget.mode == CupertinoTimerPickerMode.hms){
1989+
if (widget.mode == CupertinoTimerPickerMode.hms) {
19901990
// Pad the widget to make it as wide as `_kPickerWidth`.
19911991
pickerColumnWidth =
19921992
_kTimerPickerColumnIntrinsicWidth + (_kTimerPickerHalfColumnPadding * 2);

packages/flutter/lib/src/foundation/assertions.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1237,7 +1237,7 @@ class _FlutterErrorDetailsNode extends DiagnosticableNode<FlutterErrorDetails> {
12371237
@override
12381238
DiagnosticPropertiesBuilder? get builder {
12391239
final DiagnosticPropertiesBuilder? builder = super.builder;
1240-
if (builder == null){
1240+
if (builder == null) {
12411241
return null;
12421242
}
12431243
Iterable<DiagnosticsNode> properties = builder.properties;

packages/flutter/lib/src/foundation/change_notifier.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ class ChangeNotifier implements Listenable {
348348
if (_listeners[i] == null) {
349349
// We swap this item with the next not null item.
350350
int swapIndex = i + 1;
351-
while(_listeners[swapIndex] == null){
351+
while(_listeners[swapIndex] == null) {
352352
swapIndex += 1;
353353
}
354354
_listeners[i] = _listeners[swapIndex];

packages/flutter/lib/src/material/chip.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1835,7 +1835,7 @@ class _RawChipState extends State<RawChip> with MaterialStateMixin, TickerProvid
18351835
}
18361836

18371837
Widget? _wrapWithTooltip(String? tooltip, VoidCallback? callback, Widget? child) {
1838-
if(!widget.useDeleteButtonTooltip){
1838+
if(!widget.useDeleteButtonTooltip) {
18391839
return child;
18401840
}
18411841
if (child == null || callback == null || tooltip == null) {

packages/flutter/lib/src/material/reorderable_list.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ import 'theme.dart';
3535
/// final List<int> _items = List<int>.generate(50, (int index) => index);
3636
///
3737
/// @override
38-
/// Widget build(BuildContext context){
38+
/// Widget build(BuildContext context) {
3939
/// final ColorScheme colorScheme = Theme.of(context).colorScheme;
4040
/// final Color oddItemColor = colorScheme.primary.withOpacity(0.05);
4141
/// final Color evenItemColor = colorScheme.primary.withOpacity(0.15);
@@ -238,7 +238,7 @@ class ReorderableListView extends StatefulWidget {
238238
/// final List<int> _items = List<int>.generate(50, (int index) => index);
239239
///
240240
/// @override
241-
/// Widget build(BuildContext context){
241+
/// Widget build(BuildContext context) {
242242
/// final ColorScheme colorScheme = Theme.of(context).colorScheme;
243243
/// final Color oddItemColor = colorScheme.primary.withOpacity(0.05);
244244
/// final Color evenItemColor = colorScheme.primary.withOpacity(0.15);

packages/flutter/lib/src/material/tab_controller.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ import 'constants.dart';
119119
/// ),
120120
/// ),
121121
/// body: TabBarView(
122-
/// children: tabs.map((Tab tab){
122+
/// children: tabs.map((Tab tab) {
123123
/// return Center(
124124
/// child: Text(
125125
/// '${tab.text!} Tab',

0 commit comments

Comments
 (0)