Skip to content

Commit

Permalink
Final commit
Browse files Browse the repository at this point in the history
  • Loading branch information
EncouragedEntity committed Jul 6, 2023
1 parent 5815ee7 commit 2280593
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 16 deletions.
30 changes: 16 additions & 14 deletions lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import 'Views/all_views.dart';
import 'constants/routes.dart';
// ignore: unused_import
import 'dart:developer' as devtools show log;

void main() async {
WidgetsFlutterBinding.ensureInitialized();

Expand All @@ -32,19 +33,21 @@ void main() async {
},
);

runApp(MaterialApp(
title: 'Noting',
theme: ThemeData(
primarySwatch: customPrimarySwatch,
),
home: BlocProvider<AuthBloc>(
create: (context) => AuthBloc(FirebaseAuthProvider()),
child: HomePage(),
runApp(
MaterialApp(
title: 'Noting',
theme: ThemeData(
primarySwatch: customPrimarySwatch,
),
home: BlocProvider<AuthBloc>(
create: (context) => AuthBloc(FirebaseAuthProvider()),
child: HomePage(),
),
routes: {
AppRoutes.createUpdate: (context) => const CreateUpdateNoteView(),
},
),
routes: {
AppRoutes.createUpdate: (context) => const CreateUpdateNoteView(),
},
));
);
}

class HomePage extends StatelessWidget {
Expand Down Expand Up @@ -75,8 +78,7 @@ class HomePage extends StatelessWidget {
if (state is AuthLoggedOutState) {
return const LoginView();
}
if(state is AuthForgotPasswordState)
{
if (state is AuthForgotPasswordState) {
return const ForgotPasswordView();
}
return const Scaffold(
Expand Down
Binary file added noting.apk
Binary file not shown.
2 changes: 0 additions & 2 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ dependencies:
flutter:
sdk: flutter


# The following adds the Cupertino Icons font to your application.
# Use with the CupertinoIcons class for iOS style icons.
cupertino_icons: ^1.0.2
Expand All @@ -45,7 +44,6 @@ dependencies:
equatable: ^2.0.5
flutter_launcher_icons: ^0.11.0


dev_dependencies:
flutter_test:
sdk: flutter
Expand Down

0 comments on commit 2280593

Please sign in to comment.