Skip to content

Commit

Permalink
Remove IDE problems
Browse files Browse the repository at this point in the history
  • Loading branch information
devrnt committed Jul 9, 2019
1 parent 75dd057 commit 07d8ef9
Showing 1 changed file with 13 additions and 9 deletions.
22 changes: 13 additions & 9 deletions lib/screens/home_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -113,9 +113,9 @@ class _HomeScreenState extends State<HomeScreen>
context,
MaterialPageRoute(
builder: (context) => Provider(
builder: (_) => SearchBloc(),
child: SearchScreen(),
),
builder: (_) => SearchBloc(),
child: SearchScreen(),
),
),
)
: print('Not online, searching is unavailable');
Expand Down Expand Up @@ -216,9 +216,9 @@ class _HomeScreenState extends State<HomeScreen>
context,
MaterialPageRoute(
builder: (context) => Provider(
builder: (_) => SearchBloc(),
child: SearchScreen(),
),
builder: (_) => SearchBloc(),
child: SearchScreen(),
),
),
)
: print('Not online, searching is unavailable');
Expand All @@ -237,9 +237,9 @@ class _HomeScreenState extends State<HomeScreen>
context,
MaterialPageRoute(
builder: (context) => Provider(
child: SuggestionsScreen(),
builder: (_) => SuggestionsBloc(),
),
child: SuggestionsScreen(),
builder: (_) => SuggestionsBloc(),
),
),
)
: print('Not online, suggestions are unavailable');
Expand Down Expand Up @@ -368,10 +368,13 @@ class _HomeScreenState extends State<HomeScreen>
_firebaseMessaging = new FirebaseMessaging()
..configure(onMessage: (Map<String, dynamic> message) {
_addNotificationAction(context, message);
return null;
}, onResume: (Map<String, dynamic> message) {
_addNotificationAction(context, message);
return null;
}, onLaunch: (Map<String, dynamic> message) {
_addNotificationAction(context, message);
return null;
});
_firebaseMessaging.getToken().then((token) {
print('Firebase Message token: $token');
Expand Down Expand Up @@ -426,6 +429,7 @@ class _HomeScreenState extends State<HomeScreen>
// next page should be fetched
movieBloc.fetchNextPageIn.add(movieType);
}
return true;
},
child: snapshot.hasData
? gridEnabled
Expand Down

0 comments on commit 07d8ef9

Please sign in to comment.