Answers for "flutter main.dart example"

0

dart main function

void main()
{
    //main() function body 
}
Posted by: Guest on July-31-2021
0

flutter main.dart example

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({Key? key}):super(key:key);

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      theme: ThemeData(
        visualDensity: VisualDensity.adaptivePlatformDensity,
      ),
      home: Scaffold(
        resizeToAvoidBottomInset:false,
        appBar: AppBar(title: const Text('Profile App')),
        body: const SafeArea(
          child: HomePage(),
        )
      ),
    );
  }
}
Posted by: Guest on August-03-2021

Code answers related to "Dart"

Browse Popular Code Answers by Language