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

Analysis options, fixes and format (#107)

This commit is contained in:
Brett Morgan
2019-07-04 15:48:56 +10:00
committed by GitHub
parent 01478f5e88
commit 815079cd4d
11 changed files with 69 additions and 37 deletions

View File

@@ -46,7 +46,7 @@ class _SongsTabState extends State<SongsTab> {
);
}
Widget _listBuilder(context, index) {
Widget _listBuilder(BuildContext context, int index) {
if (index >= _itemsLength) return null;
// Show a slightly different color palette. Show poppy-ier colors on iOS
@@ -64,7 +64,7 @@ class _SongsTabState extends State<SongsTab> {
song: songNames[index],
color: color,
heroAnimation: AlwaysStoppedAnimation(0),
onPressed: () => Navigator.of(context).push(
onPressed: () => Navigator.of(context).push<void>(
MaterialPageRoute(
builder: (context) => SongDetailTab(
id: index,
@@ -106,7 +106,7 @@ class _SongsTabState extends State<SongsTab> {
// And these are all design time choices that doesn't have a single 'right'
// answer.
// ===========================================================================
Widget _buildAndroid(context) {
Widget _buildAndroid(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text(SongsTab.title),
@@ -133,7 +133,7 @@ class _SongsTabState extends State<SongsTab> {
);
}
Widget _buildIos(context) {
Widget _buildIos(BuildContext context) {
return CustomScrollView(
slivers: [
CupertinoSliverNavigationBar(