1
0
mirror of https://github.com/flutter/samples.git synced 2025-11-09 06:18:49 +00:00

Fix minor warnings (#673)

This commit is contained in:
Sashika Nawarathne
2021-01-25 07:01:38 +05:30
committed by GitHub
parent 530832810a
commit 4ae90f3aa9
2 changed files with 2 additions and 2 deletions

View File

@@ -140,7 +140,7 @@ class _AdaptiveScaffoldState extends State<AdaptiveScaffold> {
...widget.destinations.map( ...widget.destinations.map(
(d) => BottomNavigationBarItem( (d) => BottomNavigationBarItem(
icon: Icon(d.icon), icon: Icon(d.icon),
title: Text(d.title), label: d.title,
), ),
), ),
], ],

View File

@@ -57,7 +57,7 @@ class HomeScreen extends StatelessWidget {
} }
class DetailScreen extends StatelessWidget { class DetailScreen extends StatelessWidget {
String id; final String id;
DetailScreen({ DetailScreen({
this.id, this.id,