Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
org.benoitharrault.random
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
Model registry
Operate
Environments
Terraform modules
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
android
org.benoitharrault.random
Commits
0218a3d8
Commit
0218a3d8
authored
1 year ago
by
Benoît Harrault
Browse files
Options
Downloads
Plain Diff
Merge branch '41-improve-debug-swipe-left-right' into 'master'
Resolve "Improve / debug swipe left/right" Closes
#41
See merge request
!39
parents
94451b83
14bfa001
No related branches found
No related tags found
1 merge request
!39
Resolve "Improve / debug swipe left/right"
Pipeline
#4617
failed
1 year ago
Stage: update
Stage: build-debug
Changes
4
Pipelines
5
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
android/gradle.properties
+2
-2
2 additions, 2 deletions
android/gradle.properties
lib/ui/skeleton.dart
+12
-1
12 additions, 1 deletion
lib/ui/skeleton.dart
lib/ui/widgets/debug_bloc.dart
+28
-0
28 additions, 0 deletions
lib/ui/widgets/debug_bloc.dart
pubspec.yaml
+1
-1
1 addition, 1 deletion
pubspec.yaml
with
43 additions
and
4 deletions
android/gradle.properties
+
2
−
2
View file @
0218a3d8
org.gradle.jvmargs
=
-Xmx1536M
android.useAndroidX
=
true
android.enableJetifier
=
true
app.versionName
=
1.0.3
1
app.versionCode
=
3
2
app.versionName
=
1.0.3
2
app.versionCode
=
3
3
This diff is collapsed.
Click to expand it.
lib/ui/skeleton.dart
+
12
−
1
View file @
0218a3d8
...
...
@@ -9,6 +9,7 @@ import 'package:random/ui/screens/graph_page.dart';
import
'package:random/ui/screens/settings_page.dart'
;
import
'package:random/ui/widgets/app_bar.dart'
;
import
'package:random/ui/widgets/bottom_nav_bar.dart'
;
import
'package:random/ui/widgets/debug_bloc.dart'
;
class
SkeletonScreen
extends
StatefulWidget
{
const
SkeletonScreen
({
super
.
key
});
...
...
@@ -27,6 +28,8 @@ class _SkeletonScreenState extends State<SkeletonScreen> {
AboutPage
(),
];
String
debug
=
''
;
return
BlocProvider
<
SettingsCubit
>(
create:
(
BuildContext
context
)
=
>
SettingsCubit
(),
child:
BlocProvider
<
BottomNavCubit
>(
...
...
@@ -35,6 +38,9 @@ class _SkeletonScreenState extends State<SkeletonScreen> {
builder:
(
BuildContext
context
,
int
state
)
{
return
GestureDetector
(
onHorizontalDragEnd:
(
dragDetail
)
{
debug
=
dragDetail
.
velocity
.
pixelsPerSecond
.
toString
();
print
(
'debug: '
+
debug
);
if
(
dragDetail
.
velocity
.
pixelsPerSecond
.
dx
<
1
)
{
context
.
read
<
BottomNavCubit
>()
.
moveNext
();
}
else
{
...
...
@@ -48,7 +54,12 @@ class _SkeletonScreenState extends State<SkeletonScreen> {
builder:
(
BuildContext
context
,
int
state
)
{
return
AnimatedSwitcher
(
duration:
const
Duration
(
milliseconds:
300
),
child:
pageNavigation
.
elementAt
(
state
),
child:
Stack
(
children:
[
pageNavigation
.
elementAt
(
state
),
debug
!=
''
?
DebugBloc
(
content:
debug
)
:
SizedBox
(),
],
),
);
},
),
...
...
This diff is collapsed.
Click to expand it.
lib/ui/widgets/debug_bloc.dart
0 → 100644
+
28
−
0
View file @
0218a3d8
import
'package:flutter/material.dart'
;
class
DebugBloc
extends
StatelessWidget
{
const
DebugBloc
({
super
.
key
,
required
this
.
content
});
final
String
content
;
@override
Widget
build
(
BuildContext
context
)
{
return
Container
(
decoration:
BoxDecoration
(
color:
Colors
.
red
,
border:
Border
.
all
(
color:
Colors
.
grey
,
width:
2
,
),
),
child:
Padding
(
padding:
EdgeInsets
.
all
(
5
),
child:
Text
(
content
,
textAlign:
TextAlign
.
start
,
style:
TextStyle
(
fontSize:
13
),
),
),
);
}
}
This diff is collapsed.
Click to expand it.
pubspec.yaml
+
1
−
1
View file @
0218a3d8
...
...
@@ -3,7 +3,7 @@ description: A random application, for testing purpose only.
publish_to
:
'
none'
version
:
1.0.3
1
+3
2
version
:
1.0.3
2
+3
3
environment
:
sdk
:
'
^3.0.0'
...
...
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