mirror of
https://github.com/flutter/samples.git
synced 2025-11-10 23:08:59 +00:00
Upgrading samples to flutter_lints, part 1 of n (#804)
This commit is contained in:
@@ -10,7 +10,7 @@ class MyLogin extends StatelessWidget {
|
||||
return Scaffold(
|
||||
body: Center(
|
||||
child: Container(
|
||||
padding: EdgeInsets.all(80.0),
|
||||
padding: const EdgeInsets.all(80.0),
|
||||
child: Column(
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
children: [
|
||||
@@ -19,21 +19,21 @@ class MyLogin extends StatelessWidget {
|
||||
style: Theme.of(context).textTheme.headline1,
|
||||
),
|
||||
TextFormField(
|
||||
decoration: InputDecoration(
|
||||
decoration: const InputDecoration(
|
||||
hintText: 'Username',
|
||||
),
|
||||
),
|
||||
TextFormField(
|
||||
decoration: InputDecoration(
|
||||
decoration: const InputDecoration(
|
||||
hintText: 'Password',
|
||||
),
|
||||
obscureText: true,
|
||||
),
|
||||
SizedBox(
|
||||
const SizedBox(
|
||||
height: 24,
|
||||
),
|
||||
ElevatedButton(
|
||||
child: Text('ENTER'),
|
||||
child: const Text('ENTER'),
|
||||
onPressed: () {
|
||||
Navigator.pushReplacementNamed(context, '/catalog');
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user