From 9487c893078d3d89e822041e858191dfa3fc272c Mon Sep 17 00:00:00 2001 From: unknown Date: Fri, 18 May 2018 03:05:35 -0700 Subject: [PATCH] Hide login for now --- lib/main.dart | 2 ++ lib/routes.dart | 4 ++-- lib/ui/auth/login_screen.dart | 4 ++++ 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/lib/main.dart b/lib/main.dart index 836318edb..91dc3ebd1 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -40,6 +40,7 @@ class InvoiceNinjaApp extends StatelessWidget { theme: new ThemeData.dark(), title: 'Invoice Ninja', routes: { + /* NinjaRoutes.login: (context) { return StoreBuilder( builder: (context, store) { @@ -47,6 +48,7 @@ class InvoiceNinjaApp extends StatelessWidget { }, ); }, + */ NinjaRoutes.dashboard: (context) { return StoreBuilder( builder: (context, store) { diff --git a/lib/routes.dart b/lib/routes.dart index 463676c27..4e54be2a8 100644 --- a/lib/routes.dart +++ b/lib/routes.dart @@ -1,6 +1,6 @@ class NinjaRoutes { - static final login = "/"; - static final dashboard = "/dashboard"; + //static final login = "/"; + static final dashboard = "/"; static final clientList = "/clientList"; static final productList = "/productList"; } \ No newline at end of file diff --git a/lib/ui/auth/login_screen.dart b/lib/ui/auth/login_screen.dart index 7306be11d..9f67996e4 100644 --- a/lib/ui/auth/login_screen.dart +++ b/lib/ui/auth/login_screen.dart @@ -42,14 +42,18 @@ class _LoginScreenState extends State { keyboardType: TextInputType.emailAddress, //contentPadding: EdgeInsets.fromLTRB(20.0, 10.0, 20.0, 10.0), //autofocus: false, + /* validator: (val) => val.isEmpty ? 'Please enter your email.' : null, + */ onSaved: (val) => _username = val, ), TextFormField( decoration: InputDecoration(labelText: 'Password'), + /* validator: (val) => val.isEmpty ? 'Please enter your password.' : null, + */ onSaved: (val) => _password = val, obscureText: true, ),