step 7 : ui login, transaksi, user sesuai wireframe
This commit is contained in:
@@ -1,12 +1,20 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter/gestures.dart';
|
||||
import 'package:flutter/services.dart';
|
||||
import 'package:flutter_riverpod/flutter_riverpod.dart';
|
||||
import 'app/route.dart';
|
||||
|
||||
void main() async {
|
||||
WidgetsFlutterBinding.ensureInitialized();
|
||||
SystemChrome.setSystemUIOverlayStyle(const SystemUiOverlayStyle(
|
||||
statusBarIconBrightness:
|
||||
Brightness.dark, // this will change the brightness of the icons
|
||||
statusBarColor: Colors.white, // or any color you want
|
||||
));
|
||||
runApp(
|
||||
const ProviderScope(child: MyApp()),
|
||||
const ProviderScope(
|
||||
child: MyApp(),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
@@ -18,7 +26,8 @@ class MyApp extends StatelessWidget {
|
||||
return MaterialApp(
|
||||
title: 'App Petty Cash',
|
||||
theme: ThemeData(
|
||||
primarySwatch: Colors.red,
|
||||
// primarySwatch: Colors.red,
|
||||
primarySwatch: Colors.orange,
|
||||
),
|
||||
scrollBehavior: MaterialScrollBehavior().copyWith(
|
||||
dragDevices: {
|
||||
@@ -31,8 +40,8 @@ class MyApp extends StatelessWidget {
|
||||
debugShowCheckedModeBanner: false,
|
||||
// initialRoute: loginRoute,
|
||||
// initialRoute: splashScreen,
|
||||
// initialRoute: transaksiRoute,
|
||||
initialRoute: testFilePickerRoute,
|
||||
initialRoute: transaksiRoute,
|
||||
// initialRoute: testFilePickerRoute,
|
||||
onGenerateRoute: AppRoute.generateRoute,
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user