diff --git a/app/lib/main.dart b/app/lib/main.dart index ebc94b64..c4a9384d 100644 --- a/app/lib/main.dart +++ b/app/lib/main.dart @@ -10,7 +10,8 @@ class MyApp extends StatelessWidget { @override Widget build(BuildContext context) { return MaterialApp( - title: 'Flutter Demo', + debugShowCheckedModeBanner: false, + title: 'Quill Demo', theme: ThemeData( // This is the theme of your application. // @@ -27,7 +28,7 @@ class MyApp extends StatelessWidget { // closer together (more dense) than on mobile platforms. visualDensity: VisualDensity.adaptivePlatformDensity, ), - home: HomePage(title: 'Flutter Demo Home Page'), + home: HomePage(), ); } -} \ No newline at end of file +} diff --git a/app/lib/pages/home_page.dart b/app/lib/pages/home_page.dart index 82293f71..c342115d 100644 --- a/app/lib/pages/home_page.dart +++ b/app/lib/pages/home_page.dart @@ -2,19 +2,6 @@ import 'package:flutter/material.dart'; import 'package:flutter_quill/flutter_quill.dart'; class HomePage extends StatefulWidget { - HomePage({Key key, this.title}) : super(key: key); - - // This widget is the home page of your application. It is stateful, meaning - // that it has a State object (defined below) that contains fields that affect - // how it looks. - - // This class is the configuration for the state. It holds the values (in this - // case the title) provided by the parent (in this case the App widget) and - // used by the build method of the State. Fields in a Widget subclass are - // always marked "final". - - final String title; - @override _HomePageState createState() => _HomePageState(); } @@ -43,9 +30,7 @@ class _HomePageState extends State { // than having to individually change instances of widgets. return Scaffold( appBar: AppBar( - // Here we take the value from the MyHomePage object that was created by - // the App.build method, and use it to set our appbar title. - title: Text(widget.title), + title: Text("Demo Page"), ), body: Center( // Center is a layout widget. It takes a single child and positions it @@ -84,4 +69,4 @@ class _HomePageState extends State { ), // This trailing comma makes auto-formatting nicer for build methods. ); } -} \ No newline at end of file +}