1
0
mirror of https://github.com/flutter/samples.git synced 2025-11-12 15:58:32 +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

@@ -22,10 +22,10 @@ class _AddPetDetailsState extends State<AddPetDetails> {
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text('Add Pet Details'),
title: const Text('Add Pet Details'),
actions: <Widget>[
IconButton(
icon: Icon(Icons.add),
icon: const Icon(Icons.add),
onPressed: () {
PetListMessageChannel.addPetDetails(
PetDetails(
@@ -43,19 +43,19 @@ class _AddPetDetailsState extends State<AddPetDetails> {
padding: const EdgeInsets.all(8.0),
child: Column(
children: [
SizedBox(
const SizedBox(
height: 8,
),
TextField(
controller: breedTextController,
decoration: InputDecoration(
decoration: const InputDecoration(
border: OutlineInputBorder(),
filled: true,
hintText: 'Breed of pet',
labelText: 'Breed',
),
),
SizedBox(
const SizedBox(
height: 8,
),
RadioListTile<String>(