April 2020
Intermediate to advanced
380 pages
9h 24m
English
Now, we will add main.dart in order to create the final Material app. We'll create a stateless widget called MyApp and override the build() method:
class MyApp extends StatelessWidget { @override Widget build(BuildContext context) { return MaterialApp( title: 'Flutter Demo', theme: ThemeData( primarySwatch: Colors.blue, ), home: ImageSuperResolution(), ); }}
Finally, we execute the code, as follows:
void main() => runApp(MyApp());
With that, we've finished creating an application that lets the user choose an image and modify its resolution.
Read now
Unlock full access