April 2020
Intermediate to advanced
380 pages
9h 24m
English
Let's now create the main.dart file. The file contains a stateless widget, MyApp. We override the build() method and set PlayMusic as its child:
@override Widget build(BuildContext context) { return MaterialApp( title: 'Flutter Demo', theme: ThemeData( primarySwatch: Colors.blue, ), home: PlayMusic(), ); }
Inside the overridden build() method, we simply create the MaterialApp with home as PlayMusic().
Read now
Unlock full access