Skip to content

Commit

Permalink
Added title & logo
Browse files Browse the repository at this point in the history
  • Loading branch information
mayank-crlm107 committed May 8, 2021
1 parent d92592d commit c3b4797
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 26 deletions.
56 changes: 32 additions & 24 deletions lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -58,29 +58,37 @@ class _MyAppState extends State<MyApp> {
@override
Widget build(BuildContext context) {
return ChangeNotifierProvider.value(
value: DocumentProvider(),
child: MaterialApp(
theme: ThemeData(
appBarTheme: AppBarTheme(color: ThemeData.dark().canvasColor),
textSelectionColor: Colors.blueGrey,
floatingActionButtonTheme: FloatingActionButtonThemeData(
backgroundColor: ThemeData.dark().canvasColor)),
home: FlutterLogin(
onLogin: (loginData) {
print('Login info');
print('Name: ${loginData.name}');
print('Password: ${loginData.password}');
return _loginUser(loginData);
},
onSubmitAnimationCompleted: () {
Navigator.of(context).pushReplacement(FadePageRoute(
builder: (context) => DashboardScreen(),
));
},
onRecoverPassword: (String) {},
onSignup: (LoginData) {},
),
),
);
value: DocumentProvider(),
child: MaterialApp(
theme: ThemeData(
appBarTheme: AppBarTheme(color: ThemeData.dark().canvasColor),
textSelectionColor: Colors.blueGrey,
floatingActionButtonTheme: FloatingActionButtonThemeData(
backgroundColor: ThemeData.dark().canvasColor)),
home: FlutterLogin(
logo: 'lib/Model/images/docIcon.png',
title: 'ScaN4U',
onLogin: (loginData) {
print('Login info');
print('Name: ${loginData.name}');
print('Password: ${loginData.password}');
return _loginUser(loginData);
},
onSubmitAnimationCompleted: () {
Navigator.of(context).pushReplacement(FadePageRoute(
builder: (context) => DashboardScreen(),
));
},
onRecoverPassword: (String) {},
onSignup: (LoginData) {},
theme: LoginTheme(
titleStyle: TextStyle(
color: Colors.greenAccent,
fontFamily: 'Quicksand',
letterSpacing: 2,
),
),
),
));
}
}
4 changes: 2 additions & 2 deletions pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,7 @@ packages:
name: source_span
url: "https://pub.dartlang.org"
source: hosted
version: "1.8.1"
version: "1.8.0"
stack_trace:
dependency: transitive
description:
Expand Down Expand Up @@ -440,7 +440,7 @@ packages:
name: test_api
url: "https://pub.dartlang.org"
source: hosted
version: "0.3.0"
version: "0.2.19"
typed_data:
dependency: transitive
description:
Expand Down

0 comments on commit c3b4797

Please sign in to comment.