Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
org.benoitharrault.momomotus
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.momomotus
Commits
2d2b7889
Commit
2d2b7889
authored
6 months ago
by
Benoît Harrault
Browse files
Options
Downloads
Patches
Plain Diff
Use ActivityParameters widgets from flutter_custom_toolbox
parent
38a5bc82
No related branches found
No related tags found
1 merge request
!45
Resolve "Use ActivityParameters widgets from flutter_custom_toolbox"
Pipeline
#7045
passed
6 months ago
Stage: build-debug
Changes
24
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
lib/ui/widgets/game/game_board.dart
+4
-3
4 additions, 3 deletions
lib/ui/widgets/game/game_board.dart
lib/ui/widgets/game/game_cell.dart
+3
-1
3 additions, 1 deletion
lib/ui/widgets/game/game_cell.dart
pubspec.lock
+3
-3
3 additions, 3 deletions
pubspec.lock
pubspec.yaml
+2
-2
2 additions, 2 deletions
pubspec.yaml
with
12 additions
and
9 deletions
lib/ui/widgets/game/game_board.dart
+
4
−
3
View file @
2d2b7889
import
'package:flutter/material.dart'
;
import
'package:flutter_custom_toolbox/flutter_toolbox.dart'
;
import
'package:momomotus/config/
default_activity_settings
.dart'
;
import
'package:momomotus/config/
application_config
.dart'
;
import
'package:momomotus/cubit/activity/activity_cubit.dart'
;
import
'package:momomotus/models/activity/activity.dart'
;
import
'package:momomotus/ui/widgets/game/game_cell.dart'
;
...
...
@@ -16,8 +16,9 @@ class GameBoardWidget extends StatelessWidget {
final
Activity
currentActivity
=
activityState
.
currentActivity
;
final
ActivityCubit
activityCubit
=
BlocProvider
.
of
<
ActivityCubit
>(
context
);
const
int
maxGuessesCount
=
DefaultActivitySettings
.
maxGuessesCount
;
final
int
wordLength
=
int
.
parse
(
currentActivity
.
activitySettings
.
length
);
const
int
maxGuessesCount
=
ApplicationConfig
.
maxGuessesCount
;
final
int
wordLength
=
int
.
parse
(
currentActivity
.
activitySettings
.
get
(
ApplicationConfig
.
parameterCodeWordLength
));
final
List
<
String
>
guesses
=
currentActivity
.
guesses
;
...
...
This diff is collapsed.
Click to expand it.
lib/ui/widgets/game/game_cell.dart
+
3
−
1
View file @
2d2b7889
import
'package:flutter/material.dart'
;
import
'package:flutter_custom_toolbox/flutter_toolbox.dart'
;
import
'package:momomotus/config/application_config.dart'
;
import
'package:momomotus/cubit/activity/activity_cubit.dart'
;
import
'package:momomotus/models/activity/activity.dart'
;
...
...
@@ -24,7 +25,8 @@ class GameCellWidget extends StatelessWidget {
builder:
(
BuildContext
context
,
ActivityState
activityState
)
{
final
Activity
currentActivity
=
activityState
.
currentActivity
;
final
String
skin
=
currentActivity
.
globalSettings
.
skin
;
final
String
skin
=
currentActivity
.
activitySettings
.
get
(
ApplicationConfig
.
parameterCodeSkin
);
const
Color
textColor
=
Colors
.
white
;
final
Color
focusBorderColor
=
Colors
.
yellow
.
shade700
;
...
...
This diff is collapsed.
Click to expand it.
pubspec.lock
+
3
−
3
View file @
2d2b7889
...
...
@@ -122,11 +122,11 @@ packages:
dependency: "direct main"
description:
path: "."
ref: "0.
4
.0"
resolved-ref:
eb9c090bd00d73324eab8737f74b3339cc24c9e8
ref: "0.
5
.0"
resolved-ref:
b8164a50489ba981ea57d9f02e2334f09cb8c6a7
url: "https://git.harrault.fr/android/flutter-toolbox.git"
source: git
version: "0.
4
.0"
version: "0.
5
.0"
flutter_lints:
dependency: "direct dev"
description:
...
...
This diff is collapsed.
Click to expand it.
pubspec.yaml
+
2
−
2
View file @
2d2b7889
...
...
@@ -3,7 +3,7 @@ description: A motus-like game application.
publish_to
:
"
none"
version
:
0.
4.2+39
version
:
0.
5.0+40
environment
:
sdk
:
"
^3.0.0"
...
...
@@ -16,7 +16,7 @@ dependencies:
flutter_custom_toolbox
:
git
:
url
:
https://git.harrault.fr/android/flutter-toolbox.git
ref
:
0.
4
.0
ref
:
0.
5
.0
# specific
# (none)
...
...
This diff is collapsed.
Click to expand it.
Prev
1
2
Next
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