1
0
mirror of https://github.com/flutter/samples.git synced 2026-05-14 02:47:42 +00:00

Analysis options, fixes and format (#106)

This commit is contained in:
Brett Morgan
2019-07-04 15:42:59 +10:00
committed by GitHub
parent 90ecd8df25
commit 01478f5e88
9 changed files with 72 additions and 55 deletions

View File

@@ -23,7 +23,7 @@ class _PlaceTrackerAppState extends State<PlaceTrackerApp> {
@override
Widget build(BuildContext context) {
return MaterialApp(
builder: (BuildContext context, Widget child) {
builder: (context, child) {
return AppModel<AppState>(
initialState: AppState(),
child: child,
@@ -137,10 +137,10 @@ class AppState {
bool operator ==(Object other) {
if (identical(this, other)) return true;
if (other.runtimeType != runtimeType) return false;
final AppState otherAppState = other;
return otherAppState.places == places &&
otherAppState.selectedCategory == selectedCategory &&
otherAppState.viewType == viewType;
return other is AppState &&
other.places == places &&
other.selectedCategory == selectedCategory &&
other.viewType == viewType;
}
@override