September 2019
Beginner
512 pages
12h 52m
English
The app code is not fully functional yet. It's small enough to show up the layout. It builds a MaterialApp widget instance that sets the home screen to the favors list page, called FavorsPage:
class MyApp extends statelessWidget { // using mock values from mock_favors dart file for now @override Widget build(BuildContext context) { return MaterialApp( title: 'Flutter Demo', home: FavorsPage( pendingAnswerFavors: mockPendingFavors, completedFavors: mockCompletedFavors, refusedFavors: mockRefusedFavors, acceptedFavors: mockDoingFavors, ), ); }}
MaterialApp is a widget that provides useful tools for the whole application. One of them is the Theme widget, which allows us to change our app styles and colors following the Material ...
Read now
Unlock full access