Hide login for now
This commit is contained in:
parent
cb3f316c4d
commit
9487c89307
|
|
@ -40,6 +40,7 @@ class InvoiceNinjaApp extends StatelessWidget {
|
||||||
theme: new ThemeData.dark(),
|
theme: new ThemeData.dark(),
|
||||||
title: 'Invoice Ninja',
|
title: 'Invoice Ninja',
|
||||||
routes: {
|
routes: {
|
||||||
|
/*
|
||||||
NinjaRoutes.login: (context) {
|
NinjaRoutes.login: (context) {
|
||||||
return StoreBuilder<AppState>(
|
return StoreBuilder<AppState>(
|
||||||
builder: (context, store) {
|
builder: (context, store) {
|
||||||
|
|
@ -47,6 +48,7 @@ class InvoiceNinjaApp extends StatelessWidget {
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
|
*/
|
||||||
NinjaRoutes.dashboard: (context) {
|
NinjaRoutes.dashboard: (context) {
|
||||||
return StoreBuilder<AppState>(
|
return StoreBuilder<AppState>(
|
||||||
builder: (context, store) {
|
builder: (context, store) {
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
class NinjaRoutes {
|
class NinjaRoutes {
|
||||||
static final login = "/";
|
//static final login = "/";
|
||||||
static final dashboard = "/dashboard";
|
static final dashboard = "/";
|
||||||
static final clientList = "/clientList";
|
static final clientList = "/clientList";
|
||||||
static final productList = "/productList";
|
static final productList = "/productList";
|
||||||
}
|
}
|
||||||
|
|
@ -42,14 +42,18 @@ class _LoginScreenState extends State<LoginScreen> {
|
||||||
keyboardType: TextInputType.emailAddress,
|
keyboardType: TextInputType.emailAddress,
|
||||||
//contentPadding: EdgeInsets.fromLTRB(20.0, 10.0, 20.0, 10.0),
|
//contentPadding: EdgeInsets.fromLTRB(20.0, 10.0, 20.0, 10.0),
|
||||||
//autofocus: false,
|
//autofocus: false,
|
||||||
|
/*
|
||||||
validator: (val) =>
|
validator: (val) =>
|
||||||
val.isEmpty ? 'Please enter your email.' : null,
|
val.isEmpty ? 'Please enter your email.' : null,
|
||||||
|
*/
|
||||||
onSaved: (val) => _username = val,
|
onSaved: (val) => _username = val,
|
||||||
),
|
),
|
||||||
TextFormField(
|
TextFormField(
|
||||||
decoration: InputDecoration(labelText: 'Password'),
|
decoration: InputDecoration(labelText: 'Password'),
|
||||||
|
/*
|
||||||
validator: (val) =>
|
validator: (val) =>
|
||||||
val.isEmpty ? 'Please enter your password.' : null,
|
val.isEmpty ? 'Please enter your password.' : null,
|
||||||
|
*/
|
||||||
onSaved: (val) => _password = val,
|
onSaved: (val) => _password = val,
|
||||||
obscureText: true,
|
obscureText: true,
|
||||||
),
|
),
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue