{"id":1955,"date":"2022-04-07T06:29:32","date_gmt":"2022-04-07T06:29:32","guid":{"rendered":"https:\/\/mdr.foobrdigital.com\/?p=1955"},"modified":"2022-04-07T06:29:32","modified_gmt":"2022-04-07T06:29:32","slug":"first-app-step-7","status":"publish","type":"post","link":"https:\/\/mudassirbackup.infinitycodestudio.com\/index.php\/2022\/04\/07\/first-app-step-7\/","title":{"rendered":"First App Step 7 :"},"content":{"rendered":"\n<p><strong>Step 7:<\/strong>\u00a0Open the\u00a0<strong>main.dart<\/strong>\u00a0file and replace the code with the following code snippets.<a href=\"https:\/\/www.javatpoint.com\/flutter-first-application#\"><\/a><a href=\"https:\/\/www.javatpoint.com\/flutter-first-application#\"><\/a><a href=\"https:\/\/www.javatpoint.com\/flutter-first-application#\"><\/a><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>import 'package:flutter\/material.dart';  \n  \nvoid main() => runApp(MyApp());  \n  \nclass MyApp extends StatelessWidget {  \n  \/\/ This widget is the root of your application.  \n  @override  \n  Widget build(BuildContext context) {  \n    return MaterialApp(  \n      title: 'Hello World Flutter Application',  \n      theme: ThemeData(  \n        \/\/ This is the theme of your application.  \n        primarySwatch: Colors.blue,  \n      ),  \n      home: MyHomePage(title: 'Home page'),  \n    );  \n  }  \n}  \nclass MyHomePage extends StatelessWidget {  \n  MyHomePage({Key key, this.title}) : super(key: key);  \n  \/\/ This widget is the home page of your application.  \n  final String title;  \n  \n  @override  \n  Widget build(BuildContext context) {  \n    return Scaffold(  \n      appBar: AppBar(  \n        title: Text(this.title),  \n      ),  \n      body: Center(  \n        child: Text('Hello World'),  \n      ),  \n    );  \n  }  \n}  <\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Step 7:\u00a0Open the\u00a0main.dart\u00a0file and replace the code with the following code snippets.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[418],"tags":[],"_links":{"self":[{"href":"https:\/\/mudassirbackup.infinitycodestudio.com\/index.php\/wp-json\/wp\/v2\/posts\/1955"}],"collection":[{"href":"https:\/\/mudassirbackup.infinitycodestudio.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mudassirbackup.infinitycodestudio.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mudassirbackup.infinitycodestudio.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mudassirbackup.infinitycodestudio.com\/index.php\/wp-json\/wp\/v2\/comments?post=1955"}],"version-history":[{"count":0,"href":"https:\/\/mudassirbackup.infinitycodestudio.com\/index.php\/wp-json\/wp\/v2\/posts\/1955\/revisions"}],"wp:attachment":[{"href":"https:\/\/mudassirbackup.infinitycodestudio.com\/index.php\/wp-json\/wp\/v2\/media?parent=1955"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mudassirbackup.infinitycodestudio.com\/index.php\/wp-json\/wp\/v2\/categories?post=1955"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mudassirbackup.infinitycodestudio.com\/index.php\/wp-json\/wp\/v2\/tags?post=1955"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}