Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
Depression Screening Tool-2021_203
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
2021_203
Depression Screening Tool-2021_203
Commits
76b5f106
Commit
76b5f106
authored
Nov 22, 2021
by
Nipuna Tharaka Jayawardana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
New File
parent
a290e3c1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
56 additions
and
0 deletions
+56
-0
main.dart
main.dart
+56
-0
No files found.
main.dart
0 → 100644
View file @
76b5f106
import
'package:bot_toast/bot_toast.dart'
;
import
'package:detector/presentation/screens/login/login_screen.dart'
;
import
'package:firebase_core/firebase_core.dart'
;
import
'package:flutter/material.dart'
;
import
'package:flutter/services.dart'
;
import
'package:flutter_screenutil/flutter_screenutil.dart'
;
import
'package:google_fonts/google_fonts.dart'
;
import
'package:pedantic/pedantic.dart'
;
import
'package:provider/provider.dart'
;
import
'data/provider/data_provider.dart'
;
import
'data/provider/ui_support_provider.dart'
;
import
'presentation/themes/color_theme.dart'
;
void
main
(
)
async
{
WidgetsFlutterBinding
.
ensureInitialized
();
await
Firebase
.
initializeApp
();
unawaited
(
SystemChrome
.
setPreferredOrientations
([
DeviceOrientation
.
portraitUp
]));
runApp
(
MyApp
());
}
class
MyApp
extends
StatelessWidget
{
@override
Widget
build
(
BuildContext
context
)
{
return
ScreenUtilInit
(
designSize:
Size
(
414
,
896
),
builder:
()
{
return
MultiProvider
(
providers:
[
ChangeNotifierProvider
<
DataProvider
>(
create:
(
_
)
=>
DataProvider
(),
),
ChangeNotifierProvider
<
UiSupportProvider
>(
create:
(
_
)
=>
UiSupportProvider
(),
),
],
child:
MaterialApp
(
debugShowCheckedModeBanner:
false
,
title:
"Depression Detector"
,
theme:
ThemeData
(
textTheme:
GoogleFonts
.
firaSansTextTheme
(
Theme
.
of
(
context
).
textTheme
,
),
scaffoldBackgroundColor:
ColorTheme
.
backgroundColor
,
primaryColor:
ColorTheme
.
accentColor1
,
),
builder:
BotToastInit
(),
navigatorObservers:
[
BotToastNavigatorObserver
()],
home:
LoginScreen
(),
),
);
},
);
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment