Hide login for now

This commit is contained in:
unknown 2018-05-18 03:05:35 -07:00
parent cb3f316c4d
commit 9487c89307
3 changed files with 8 additions and 2 deletions

View File

@ -40,6 +40,7 @@ class InvoiceNinjaApp extends StatelessWidget {
theme: new ThemeData.dark(),
title: 'Invoice Ninja',
routes: {
/*
NinjaRoutes.login: (context) {
return StoreBuilder<AppState>(
builder: (context, store) {
@ -47,6 +48,7 @@ class InvoiceNinjaApp extends StatelessWidget {
},
);
},
*/
NinjaRoutes.dashboard: (context) {
return StoreBuilder<AppState>(
builder: (context, store) {

View File

@ -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";
}

View File

@ -42,14 +42,18 @@ class _LoginScreenState extends State<LoginScreen> {
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,
),