diff --git a/packages/flutter_tools/templates/app/lib/main.dart.tmpl b/packages/flutter_tools/templates/app/lib/main.dart.tmpl index 90806145615..6048c886753 100644 --- a/packages/flutter_tools/templates/app/lib/main.dart.tmpl +++ b/packages/flutter_tools/templates/app/lib/main.dart.tmpl @@ -62,7 +62,7 @@ class MyApp extends StatelessWidget { // // This works for code too, not just values: Most code changes can be // tested with just a hot reload. - colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple), + colorScheme: .fromSeed(seedColor: Colors.deepPurple), ), home: const MyHomePage(title: 'Flutter Demo Home Page'), ); @@ -136,7 +136,7 @@ class _MyHomePageState extends State { // TRY THIS: Invoke "debug painting" (choose the "Toggle Debug Paint" // action in the IDE, or press "p" in the console), to see the // wireframe for each widget. - mainAxisAlignment: MainAxisAlignment.center, + mainAxisAlignment: .center, children: [ const Text('You have pushed the button this many times:'), Text( @@ -240,20 +240,20 @@ class _MyAppState extends State { ), body: SingleChildScrollView( child: Container( - padding: const EdgeInsets.all(10), + padding: const .all(10), child: Column( children: [ const Text( 'This calls a native function through FFI that is shipped as source in the package. ' 'The native code is built as part of the Flutter Runner build.', style: textStyle, - textAlign: TextAlign.center, + textAlign: .center, ), spacerSmall, Text( 'sum(1, 2) = $sumResult', style: textStyle, - textAlign: TextAlign.center, + textAlign: .center, ), spacerSmall, FutureBuilder( @@ -264,7 +264,7 @@ class _MyAppState extends State { return Text( 'await sumAsync(3, 4) = $displayValue', style: textStyle, - textAlign: TextAlign.center, + textAlign: .center, ); }, ), diff --git a/packages/flutter_tools/templates/module/common/lib/main.dart.tmpl b/packages/flutter_tools/templates/module/common/lib/main.dart.tmpl index 8c81633ac67..14d21ea2751 100644 --- a/packages/flutter_tools/templates/module/common/lib/main.dart.tmpl +++ b/packages/flutter_tools/templates/module/common/lib/main.dart.tmpl @@ -97,7 +97,7 @@ class _MyHomePageState extends State { // center the children vertically; the main axis here is the vertical // axis because Columns are vertical (the cross axis would be // horizontal). - mainAxisAlignment: MainAxisAlignment.center, + mainAxisAlignment: .center, children: [ const Text('You have pushed the button this many times:'), Text( diff --git a/packages/flutter_tools/templates/package_ffi/hook/build.dart.tmpl b/packages/flutter_tools/templates/package_ffi/hook/build.dart.tmpl index e33e0554bfc..d8f0bcef974 100644 --- a/packages/flutter_tools/templates/package_ffi/hook/build.dart.tmpl +++ b/packages/flutter_tools/templates/package_ffi/hook/build.dart.tmpl @@ -16,7 +16,7 @@ void main(List args) async { input: input, output: output, logger: Logger('') - ..level = Level.ALL + ..level = .ALL ..onRecord.listen((record) => print(record.message)), ); });