1
0
mirror of https://github.com/flutter/samples.git synced 2025-11-08 13:58:47 +00:00

Upgrading samples to flutter_lints, part 1 of n (#804)

This commit is contained in:
Brett Morgan
2021-06-05 12:24:28 +10:00
committed by GitHub
parent 14921d0c06
commit 936d1fdaae
230 changed files with 2361 additions and 2444 deletions

View File

@@ -49,7 +49,7 @@ class _HomePageState extends State<HomePage> {
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text('Home page'),
title: const Text('Home page'),
),
body: Column(
crossAxisAlignment: CrossAxisAlignment.start,
@@ -63,7 +63,7 @@ class _HomePageState extends State<HomePage> {
'Button tapped $_counter time${_counter == 1 ? '' : 's'}.',
style: Theme.of(context).textTheme.subtitle2,
),
SizedBox(height: 18),
const SizedBox(height: 18),
ElevatedButton(
child: const Text('Continue in iOS view'),
onPressed: _launchPlatformCount,
@@ -76,7 +76,7 @@ class _HomePageState extends State<HomePage> {
padding: const EdgeInsets.only(bottom: 15, left: 5),
child: Row(
children: [
FlutterLogo(),
const FlutterLogo(),
Text(
'Flutter',
style: Theme.of(context).textTheme.headline5,