theme changes
This commit is contained in:
parent
075a57278f
commit
fba0dd9ebc
5 changed files with 4 additions and 10 deletions
|
@ -36,7 +36,7 @@ Future<LoginModel> submitReceiptAPI(
|
||||||
} else {
|
} else {
|
||||||
final responseJson = json.decode(response.body);
|
final responseJson = json.decode(response.body);
|
||||||
|
|
||||||
|
|
||||||
showDialogSingleButton(
|
showDialogSingleButton(
|
||||||
context,
|
context,
|
||||||
"Unable to Submit Receipt",
|
"Unable to Submit Receipt",
|
||||||
|
|
|
@ -15,9 +15,9 @@ class MyApp extends StatelessWidget {
|
||||||
//var config = ConfigWrapper.of(context);
|
//var config = ConfigWrapper.of(context);
|
||||||
return new MaterialApp(
|
return new MaterialApp(
|
||||||
title: "Splash and Token Authentication",
|
title: "Splash and Token Authentication",
|
||||||
// theme: new ThemeData(
|
theme: new ThemeData(
|
||||||
// primarySwatch: config.production ? Colors.green : Colors.yellow,
|
primarySwatch: Colors.blueGrey,
|
||||||
// ),
|
),
|
||||||
routes: <String, WidgetBuilder>{
|
routes: <String, WidgetBuilder>{
|
||||||
"/HomePage": (BuildContext context) => HomePage(),
|
"/HomePage": (BuildContext context) => HomePage(),
|
||||||
"/LoginPage": (BuildContext context) => LoginPage(),
|
"/LoginPage": (BuildContext context) => LoginPage(),
|
||||||
|
|
|
@ -28,12 +28,10 @@ class _HomePageState extends State<HomePage> {
|
||||||
"Home Page",
|
"Home Page",
|
||||||
style: TextStyle(color: Colors.black),
|
style: TextStyle(color: Colors.black),
|
||||||
),
|
),
|
||||||
backgroundColor: Colors.white,
|
|
||||||
iconTheme: IconThemeData(color: Colors.black),
|
iconTheme: IconThemeData(color: Colors.black),
|
||||||
elevation: Theme.of(context).platform == TargetPlatform.iOS ? 0.0 : 6.0,
|
elevation: Theme.of(context).platform == TargetPlatform.iOS ? 0.0 : 6.0,
|
||||||
),
|
),
|
||||||
drawer: BasicDrawer(),
|
drawer: BasicDrawer(),
|
||||||
backgroundColor: Colors.white,
|
|
||||||
body: Container(
|
body: Container(
|
||||||
padding: EdgeInsets.all(32.0),
|
padding: EdgeInsets.all(32.0),
|
||||||
child: Center(
|
child: Center(
|
||||||
|
|
|
@ -70,10 +70,8 @@ class LoginPageState extends State<LoginPage> {
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
centerTitle: true,
|
centerTitle: true,
|
||||||
backgroundColor: Colors.white,
|
|
||||||
iconTheme: IconThemeData(color: Colors.black),
|
iconTheme: IconThemeData(color: Colors.black),
|
||||||
),
|
),
|
||||||
backgroundColor: Colors.white,
|
|
||||||
body: Container(
|
body: Container(
|
||||||
child: Padding(
|
child: Padding(
|
||||||
padding: EdgeInsets.fromLTRB(30.0, 0.0, 30.0, 0.0),
|
padding: EdgeInsets.fromLTRB(30.0, 0.0, 30.0, 0.0),
|
||||||
|
|
|
@ -73,10 +73,8 @@ class ReceiptPageState extends State<ReceiptPage> {
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
centerTitle: true,
|
centerTitle: true,
|
||||||
backgroundColor: Colors.white,
|
|
||||||
iconTheme: IconThemeData(color: Colors.black),
|
iconTheme: IconThemeData(color: Colors.black),
|
||||||
),
|
),
|
||||||
backgroundColor: Colors.white,
|
|
||||||
body: Container(
|
body: Container(
|
||||||
child: Padding(
|
child: Padding(
|
||||||
padding: EdgeInsets.fromLTRB(30.0, 0.0, 30.0, 0.0),
|
padding: EdgeInsets.fromLTRB(30.0, 0.0, 30.0, 0.0),
|
||||||
|
|
Reference in a new issue