theme changes

This commit is contained in:
Finn 2019-05-10 12:51:11 +01:00
parent 075a57278f
commit fba0dd9ebc
No known key found for this signature in database
GPG key ID: 7455B4B17685B598
5 changed files with 4 additions and 10 deletions

View file

@ -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",

View file

@ -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(),

View file

@ -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(

View file

@ -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),

View file

@ -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),