Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
ginkgo
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Fred
ginkgo
Commits
f5344e67
Commit
f5344e67
authored
10 months ago
by
vjrj
Browse files
Options
Downloads
Patches
Plain Diff
Trying to fix introduction error
parent
cd79f473
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
lib/main.dart
+20
-17
20 additions, 17 deletions
lib/main.dart
lib/ui/screens/second_screen.dart
+1
-1
1 addition, 1 deletion
lib/ui/screens/second_screen.dart
lib/ui/screens/third_screen.dart
+1
-1
1 addition, 1 deletion
lib/ui/screens/third_screen.dart
with
22 additions
and
19 deletions
lib/main.dart
+
20
−
17
View file @
f5344e67
...
@@ -186,8 +186,8 @@ void main() async {
...
@@ -186,8 +186,8 @@ void main() async {
GinkgoApp
(
darkTheme:
darkTheme
,
lightTheme:
lightTheme
)),
GinkgoApp
(
darkTheme:
darkTheme
,
lightTheme:
lightTheme
)),
)));
)));
});
});
if
(
inDevelopment
)
{
if
(
!
kIsWeb
&&
inDevelopment
)
{
// Only use sentry in
production
// Only use sentry in
development
await
SentryFlutter
.
init
((
await
SentryFlutter
.
init
((
SentryFlutterOptions
options
,
SentryFlutterOptions
options
,
)
{
)
{
...
@@ -266,11 +266,11 @@ class _AppIntro extends State<AppIntro> {
...
@@ -266,11 +266,11 @@ class _AppIntro extends State<AppIntro> {
GlobalKey
<
IntroductionScreenState
>();
GlobalKey
<
IntroductionScreenState
>();
void
_onIntroEnd
(
BuildContext
context
,
AppCubit
cubit
)
{
void
_onIntroEnd
(
BuildContext
context
,
AppCubit
cubit
)
{
cubit
.
introViewed
();
Navigator
.
of
(
context
)
.
pushReplacement
(
Navigator
.
of
(
context
)
.
pushReplacement
(
MaterialPageRoute
<
void
>(
MaterialPageRoute
<
void
>(
builder:
(
BuildContext
_
)
=
>
const
SkeletonScreen
()),
builder:
(
BuildContext
_
)
=
>
const
FeedbackAnd
SkeletonScreen
()),
);
);
cubit
.
introViewed
();
}
}
@override
@override
...
@@ -551,10 +551,7 @@ class _GinkgoAppState extends State<GinkgoApp> {
...
@@ -551,10 +551,7 @@ class _GinkgoAppState extends State<GinkgoApp> {
locale:
context
.
locale
,
locale:
context
.
locale
,
debugShowCheckedModeBanner:
false
,
debugShowCheckedModeBanner:
false
,
home:
context
.
read
<
AppCubit
>()
.
isIntroViewed
home:
context
.
read
<
AppCubit
>()
.
isIntroViewed
?
BetterFeedback
(
?
const
FeedbackAndSkeletonScreen
()
localizationsDelegates:
context
.
localizationDelegates
.
.
add
(
CustomFeedbackLocalizationsDelegate
()),
child:
const
SkeletonScreen
())
:
const
AppIntro
(),
:
const
AppIntro
(),
builder:
(
BuildContext
buildContext
,
Widget
?
widget
)
{
builder:
(
BuildContext
buildContext
,
Widget
?
widget
)
{
NotificationController
.
locale
=
context
.
locale
;
NotificationController
.
locale
=
context
.
locale
;
...
@@ -562,14 +559,7 @@ class _GinkgoAppState extends State<GinkgoApp> {
...
@@ -562,14 +559,7 @@ class _GinkgoAppState extends State<GinkgoApp> {
BouncingScrollWrapper
.
builder
(
BouncingScrollWrapper
.
builder
(
context
,
context
,
ConnectivityWidgetWrapperWrapper
(
ConnectivityWidgetWrapperWrapper
(
//message: tr('offline'),
offlineWidget:
Column
(
//height: 18,
offlineWidget:
/* Container(
color: Colors.transparent,
child: Center(
child: */
Column
(
mainAxisSize:
MainAxisSize
.
min
,
mainAxisSize:
MainAxisSize
.
min
,
children:
<
Widget
>[
children:
<
Widget
>[
const
Icon
(
const
Icon
(
...
@@ -596,7 +586,6 @@ class _GinkgoAppState extends State<GinkgoApp> {
...
@@ -596,7 +586,6 @@ class _GinkgoAppState extends State<GinkgoApp> {
const
SizedBox
(
height:
110
),
const
SizedBox
(
height:
110
),
],
],
),
),
child:
widget
!
,
child:
widget
!
,
)),
)),
maxWidth:
480
,
maxWidth:
480
,
...
@@ -614,3 +603,17 @@ class _GinkgoAppState extends State<GinkgoApp> {
...
@@ -614,3 +603,17 @@ class _GinkgoAppState extends State<GinkgoApp> {
});
});
}
}
}
}
class
FeedbackAndSkeletonScreen
extends
StatelessWidget
{
const
FeedbackAndSkeletonScreen
({
super
.
key
,
});
@override
Widget
build
(
BuildContext
context
)
{
return
BetterFeedback
(
localizationsDelegates:
context
.
localizationDelegates
.
.
add
(
CustomFeedbackLocalizationsDelegate
()),
child:
const
SkeletonScreen
());
}
}
This diff is collapsed.
Click to expand it.
lib/ui/screens/second_screen.dart
+
1
−
1
View file @
f5344e67
...
@@ -18,8 +18,8 @@ class _SecondScreenState extends State<SecondScreen> {
...
@@ -18,8 +18,8 @@ class _SecondScreenState extends State<SecondScreen> {
@override
@override
void
initState
()
{
void
initState
()
{
tutorial
=
SecondTutorial
(
context
);
super
.
initState
();
super
.
initState
();
tutorial
=
SecondTutorial
(
context
);
}
}
@override
@override
...
...
This diff is collapsed.
Click to expand it.
lib/ui/screens/third_screen.dart
+
1
−
1
View file @
f5344e67
...
@@ -27,8 +27,8 @@ class _ThirdScreenState extends State<ThirdScreen> {
...
@@ -27,8 +27,8 @@ class _ThirdScreenState extends State<ThirdScreen> {
@override
@override
void
initState
()
{
void
initState
()
{
tutorial
=
ThirdTutorial
(
context
);
super
.
initState
();
super
.
initState
();
tutorial
=
ThirdTutorial
(
context
);
}
}
@override
@override
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment