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(),
|
||||
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) {
|
||||
|
|
|
|||
|
|
@ -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";
|
||||
}
|
||||
|
|
@ -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,
|
||||
),
|
||||
|
|
|
|||
Loading…
Reference in New Issue