Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
M
Mobile App
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
Container registry
Model registry
Operate
Environments
Monitor
Incidents
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Code
Mobile App
Commits
6fca8e5c
Commit
6fca8e5c
authored
5 years ago
by
Markin Igor
Browse files
Options
Downloads
Patches
Plain Diff
Add reveal timer cancellation.
parent
675f7da0
No related branches found
No related tags found
1 merge request
!2
Resolve "Rework auth flow."
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/src/app.dart
+17
-6
17 additions, 6 deletions
lib/src/app.dart
with
17 additions
and
6 deletions
lib/src/app.dart
+
17
−
6
View file @
6fca8e5c
...
@@ -141,10 +141,11 @@ class _MainAppState extends State<MainApp> {
...
@@ -141,10 +141,11 @@ class _MainAppState extends State<MainApp> {
});
});
initUniLinks
();
// Show buttons after timeout
// Show buttons after timeout
revealButtons
(
3
);
revealButtons
(
3
);
initUniLinks
();
}
}
@override
@override
...
@@ -163,8 +164,20 @@ class _MainAppState extends State<MainApp> {
...
@@ -163,8 +164,20 @@ class _MainAppState extends State<MainApp> {
});
});
}
}
hideButtons
()
{
if
(
_revealTimer
!=
null
&&
_revealTimer
.
isActive
)
{
_revealTimer
.
cancel
();
}
setState
(()
{
_buttonsHidden
=
true
;
});
}
Timer
_revealTimer
;
revealButtons
(
delay
)
{
revealButtons
(
delay
)
{
Timer
(
_revealTimer
=
Timer
(
Duration
(
seconds:
delay
),
Duration
(
seconds:
delay
),
()
{
()
{
setState
(()
{
setState
(()
{
...
@@ -209,9 +222,7 @@ class _MainAppState extends State<MainApp> {
...
@@ -209,9 +222,7 @@ class _MainAppState extends State<MainApp> {
}
}
// Hide buttons so they wont blink after we close or finish oauth
// Hide buttons so they wont blink after we close or finish oauth
setState
(()
{
hideButtons
();
_buttonsHidden
=
true
;
});
setScreen
(
Screen
.
OAuth
);
setScreen
(
Screen
.
OAuth
);
...
...
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