diff --git a/lib/src/App.dart b/lib/src/App.dart index 4d40442..d9e08c4 100644 --- a/lib/src/App.dart +++ b/lib/src/App.dart @@ -11,6 +11,8 @@ class App extends StatelessWidget { //home: Text('Start'), onGenerateRoute: routes, theme: ThemeData( + // Accent color is set to be used by the floating action button. + accentColor: Color(0xFF707070), canvasColor: Color.fromRGBO(23, 25, 29, 1.0), cardColor: Color.fromRGBO(36, 39, 44, 1.0), fontFamily: 'IBM Plex Sans', diff --git a/lib/src/screens/new-task.dart b/lib/src/screens/new-task.dart new file mode 100644 index 0000000..e69de29 diff --git a/lib/src/widgets/new-item-dialog-button.dart b/lib/src/widgets/new-item-dialog-button.dart index ad48d09..95e847a 100644 --- a/lib/src/widgets/new-item-dialog-button.dart +++ b/lib/src/widgets/new-item-dialog-button.dart @@ -1,6 +1,10 @@ import 'package:flutter/material.dart'; import 'package:font_awesome_flutter/font_awesome_flutter.dart'; +/// A card with a label and circular button. +/// +/// Let's you specify the text shown and the action to perform when the circular +/// button is pressed. class NewItemDialogButton extends StatelessWidget { final VoidCallback onTap; final String label; @@ -35,7 +39,6 @@ class NewItemDialogButton extends StatelessWidget { ), FloatingActionButton( child: Icon(FontAwesomeIcons.plus), - backgroundColor: Color(0xFF707070), onPressed: () {}, ), ], diff --git a/lib/src/widgets/new-item-dialog-route.dart b/lib/src/widgets/new-item-dialog-route.dart index cd8b711..ccd5b20 100644 --- a/lib/src/widgets/new-item-dialog-route.dart +++ b/lib/src/widgets/new-item-dialog-route.dart @@ -3,6 +3,8 @@ import 'package:flutter/cupertino.dart'; import './new-item-dialog-button.dart'; +/// A transparent screen that lets you choose between creating a new task or +/// add a new picture. class NewItemDialogRoute extends PopupRoute { @override // TODO: implement barrierColor @@ -19,8 +21,7 @@ class NewItemDialogRoute extends PopupRoute { @override Widget buildPage(BuildContext context, Animation animation, Animation secondaryAnimation) { - final result = _builder(context); - return result; + return _builder(context); } Widget _builder(BuildContext context) { diff --git a/lib/src/widgets/search-box.dart b/lib/src/widgets/search-box.dart index c6fba4d..be62b1e 100644 --- a/lib/src/widgets/search-box.dart +++ b/lib/src/widgets/search-box.dart @@ -3,6 +3,7 @@ import 'package:font_awesome_flutter/font_awesome_flutter.dart'; import './gradient_touchable_container.dart'; +//TODO: Add neccessary properties to be able to inform of changes in text field. class SearchBox extends StatelessWidget { final double height;