Skip to content

Commit

Permalink
Fix unsynced commit issues
Browse files Browse the repository at this point in the history
  • Loading branch information
RajathWarrier committed Apr 28, 2021
1 parent fb5d4d8 commit be5e73c
Showing 1 changed file with 0 additions and 79 deletions.
79 changes: 0 additions & 79 deletions lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -24,85 +24,6 @@ class MyApp extends StatelessWidget {
title: 'Pomodoro',
theme: ThemeData(
primarySwatch: Colors.red,
// This makes the visual density adapt to the platform that you run
// the app on. For desktop platforms, the controls will be smaller and
// closer together (more dense) than on mobile platforms.
visualDensity: VisualDensity.adaptivePlatformDensity,
),
home: MyHomePage(title: 'Pomodoro'),
);
}
}

class MyHomePage extends StatefulWidget {
MyHomePage({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
_MyHomePageState createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
void _gotoAddTask() {
Navigator.push(
context, MaterialPageRoute(builder: (context) => MyAddTaskForm()));
}

@override
Widget build(BuildContext context) {
// This method is rerun every time setState is called, for instance as done
// by the _incrementCounter method above.
//
// The Flutter framework has been optimized to make rerunning build methods
// fast, so that you can just rebuild anything that needs updating rather
// 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),
),
body: Center(
// Center is a layout widget. It takes a single child and positions it
// in the middle of the parent.
child: Column(
// Column is also a layout widget. It takes a list of children and
// arranges them vertically. By default, it sizes itself to fit its
// children horizontally, and tries to be as tall as its parent.
//
// Invoke "debug painting" (press "p" in the console, choose the
// "Toggle Debug Paint" action from the Flutter Inspector in Android
// Studio, or the "Toggle Debug Paint" command in Visual Studio Code)
// to see the wireframe for each widget.
//
// Column has various properties to control how it sizes itself and
// how it positions its children. Here we use mainAxisAlignment to
// center the children vertically; the main axis here is the vertical
// axis because Columns are vertical (the cross axis would be
// horizontal).
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[
Text(
'No tasks to complete.',
style: Theme.of(context).textTheme.bodyText2,
),
Padding(padding: EdgeInsets.fromLTRB(0, 0, 0, 6)),
Text(
'Press Add Task to add a new one!',
style: Theme.of(context).textTheme.bodyText2,
),
],
),
),
routes: {
// All the available routes in the app.
Expand Down

0 comments on commit be5e73c

Please sign in to comment.