Skip to content

Instantly share code, notes, and snippets.

@ornicar
Created March 23, 2023 08:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ornicar/9b204f90bca386581c41ca54678ca229 to your computer and use it in GitHub Desktop.
Save ornicar/9b204f90bca386581c41ca54678ca229 to your computer and use it in GitHub Desktop.
❯ flutter devices
3 connected devices:
POCO F2 Pro (mobile) • 7f52bfb9 • android-arm64 • Android 12 (API 31)
Linux (desktop) • linux • linux-x64 • Arch Linux 5.19.11-arch1-1
Chrome (web) • chrome • web-javascript • Google Chrome 111.0.5563.110
❯ flutter run -d 7f52bfb9
Running "flutter pub get" in mobile...
Resolving dependencies... (6.7s)
_fe_analyzer_shared 52.0.0 (57.0.0 available)
analyzer 5.4.0 (5.9.0 available)
async 2.10.0 (2.11.0 available)
build_daemon 3.1.1 (4.0.0 available)
build_runner 2.3.3 (2.4.1 available)
characters 1.2.1 (1.3.0 available)
cli_util 0.3.5 (0.4.0 available)
collection 1.17.0 (1.17.1 available)
custom_lint 0.2.12 (0.3.2 available)
custom_lint_core 0.2.12 (0.3.2 available)
dart_code_metrics 5.6.0 (5.7.0 available)
dart_code_metrics_presets 1.4.1 (1.5.0 available)
dart_style 2.2.5 (2.3.0 available)
intl 0.17.0 (0.18.0 available)
js 0.6.5 (0.6.7 available)
lint 2.0.1 (2.1.1 available)
matcher 0.12.13 (0.12.15 available)
material_color_utilities 0.2.0 (0.3.0 available)
meta 1.8.0 (1.9.1 available)
path 1.8.2 (1.8.3 available)
path_provider 2.0.13 (2.0.14 available)
petitparser 5.1.0 (5.3.0 available)
riverpod_analyzer_utils 0.1.1 (0.2.0 available)
riverpod_generator 2.1.0 (2.1.4 available)
shared_preferences 2.0.18 (2.0.20 available)
sqlite3 1.10.0 (1.10.1 available)
test 1.22.0 (1.23.1 available)
test_api 0.4.16 (0.4.18 available)
test_core 0.4.20 (0.4.24 available)
timeago 3.3.0 (3.4.0 available)
url_launcher_android 6.0.25 (6.0.26 available)
vm_service 9.4.0 (11.2.1 available)
win32 3.1.3 (4.1.1 available)
Got dependencies!
"af": 9 untranslated message(s).
"ar": 11 untranslated message(s).
"az": 101 untranslated message(s).
"be": 41 untranslated message(s).
"bg": 24 untranslated message(s).
"bn": 122 untranslated message(s).
"br": 320 untranslated message(s).
"bs": 117 untranslated message(s).
"ca": 9 untranslated message(s).
"cs": 18 untranslated message(s).
"da": 9 untranslated message(s).
"de": 9 untranslated message(s).
"el": 15 untranslated message(s).
"en_US": 13 untranslated message(s).
"eo": 147 untranslated message(s).
"es": 9 untranslated message(s).
"et": 75 untranslated message(s).
"eu": 9 untranslated message(s).
"fa": 9 untranslated message(s).
"fi": 9 untranslated message(s).
"fo": 170 untranslated message(s).
"fr": 9 untranslated message(s).
"ga": 22 untranslated message(s).
"gl": 9 untranslated message(s).
"he": 9 untranslated message(s).
"hi": 40 untranslated message(s).
"hr": 9 untranslated message(s).
"hu": 9 untranslated message(s).
"hy": 58 untranslated message(s).
"id": 40 untranslated message(s).
"it": 9 untranslated message(s).
"ja": 9 untranslated message(s).
"kk": 15 untranslated message(s).
"ko": 47 untranslated message(s).
"lb": 29 untranslated message(s).
"lt": 9 untranslated message(s).
"lv": 9 untranslated message(s).
"mk": 216 untranslated message(s).
"nb": 9 untranslated message(s).
"nl": 9 untranslated message(s).
"nn": 9 untranslated message(s).
"pl": 9 untranslated message(s).
"pt": 10 untranslated message(s).
"pt_BR": 9 untranslated message(s).
"ro": 9 untranslated message(s).
"ru": 9 untranslated message(s).
"sk": 34 untranslated message(s).
"sl": 64 untranslated message(s).
"sq": 21 untranslated message(s).
"sr": 222 untranslated message(s).
"sv": 11 untranslated message(s).
"tr": 14 untranslated message(s).
"tt": 260 untranslated message(s).
"uk": 9 untranslated message(s).
"vi": 9 untranslated message(s).
"zh": 14 untranslated message(s).
"zh_TW": 99 untranslated message(s).
To see a detailed report, use the untranslated-messages-file
option in the l10n.yaml file:
untranslated-messages-file: desiredFileName.txt
<other option>: <other selection>
This will generate a JSON format file containing all messages that
need to be translated.
Launching lib/main.dart on POCO F2 Pro in debug mode...
Building with Flutter multidex support enabled.
Checking the license for package Android SDK Platform 33 in /home/thib/Android/Sdk/licenses
License for package Android SDK Platform 33 accepted.
Preparing "Install Android SDK Platform 33 (revision: 2)".
"Install Android SDK Platform 33 (revision: 2)" ready.
Installing Android SDK Platform 33 in /home/thib/Android/Sdk/platforms/android-33
"Install Android SDK Platform 33 (revision: 2)" complete.
"Install Android SDK Platform 33 (revision: 2)" finished.
"af": 9 untranslated message(s).
"ar": 11 untranslated message(s).
"az": 101 untranslated message(s).
"be": 41 untranslated message(s).
"bg": 24 untranslated message(s).
"bn": 122 untranslated message(s).
"br": 320 untranslated message(s).
"bs": 117 untranslated message(s).
"ca": 9 untranslated message(s).
"cs": 18 untranslated message(s).
"da": 9 untranslated message(s).
"de": 9 untranslated message(s).
"el": 15 untranslated message(s).
"en_US": 13 untranslated message(s).
"eo": 147 untranslated message(s).
"es": 9 untranslated message(s).
"et": 75 untranslated message(s).
"eu": 9 untranslated message(s).
"fa": 9 untranslated message(s).
"fi": 9 untranslated message(s).
"fo": 170 untranslated message(s).
"fr": 9 untranslated message(s).
"ga": 22 untranslated message(s).
"gl": 9 untranslated message(s).
"he": 9 untranslated message(s).
"hi": 40 untranslated message(s).
"hr": 9 untranslated message(s).
"hu": 9 untranslated message(s).
"hy": 58 untranslated message(s).
"id": 40 untranslated message(s).
"it": 9 untranslated message(s).
"ja": 9 untranslated message(s).
"kk": 15 untranslated message(s).
"ko": 47 untranslated message(s).
"lb": 29 untranslated message(s).
"lt": 9 untranslated message(s).
"lv": 9 untranslated message(s).
"mk": 216 untranslated message(s).
"nb": 9 untranslated message(s).
"nl": 9 untranslated message(s).
"nn": 9 untranslated message(s).
"pl": 9 untranslated message(s).
"pt": 10 untranslated message(s).
"pt_BR": 9 untranslated message(s).
"ro": 9 untranslated message(s).
"ru": 9 untranslated message(s).
"sk": 34 untranslated message(s).
"sl": 64 untranslated message(s).
"sq": 21 untranslated message(s).
"sr": 222 untranslated message(s).
"sv": 11 untranslated message(s).
"tr": 14 untranslated message(s).
"tt": 260 untranslated message(s).
"uk": 9 untranslated message(s).
"vi": 9 untranslated message(s).
"zh": 14 untranslated message(s).
"zh_TW": 99 untranslated message(s).
To see a detailed report, use the untranslated-messages-file
option in the l10n.yaml file:
untranslated-messages-file: desiredFileName.txt
<other option>: <other selection>
This will generate a JSON format file containing all messages that
need to be translated.
lib/src/common/brightness.dart:9:33: Error: Type '_$CurrentBrightness' not found.
class CurrentBrightness extends _$CurrentBrightness {
^^^^^^^^^^^^^^^^^^^
lib/src/common/connectivity.dart:19:41: Error: Type 'ConnectivityRef' not found.
Future<ConnectivityStatus> connectivity(ConnectivityRef ref) async {
^^^^^^^^^^^^^^^
lib/src/model/puzzle/puzzle.dart:75:24: Error: Type '_$PuzzleRound' not found.
class PuzzleRound with _$PuzzleRound {
^^^^^^^^^^^^^
lib/src/model/puzzle/puzzle.dart:75:7: Error: The type '_$PuzzleRound' can't be mixed in.
class PuzzleRound with _$PuzzleRound {
^
lib/src/model/puzzle/puzzle.dart:80:8: Error: Couldn't find constructor '_PuzzleRound'.
}) = _PuzzleRound;
^
lib/src/model/puzzle/puzzle.dart:80:8: Error: Redirection constructor target not found: '_PuzzleRound'
}) = _PuzzleRound;
^
lib/src/common/brightness.g.dart:14:3: Error: Undefined name 'currentBrightness'.
currentBrightness,
^^^^^^^^^^^^^^^^^
lib/src/common/brightness.g.dart:12:14: Error: Undefined name 'currentBrightness'.
@ProviderFor(currentBrightness)
^^^^^^^^^^^^^^^^^
lib/src/model/puzzle/puzzle.dart:20:8: Error: The constructor function type '_Puzzle Function({PuzzleGame game, PuzzleData puzzle})' isn't a subtype of 'Puzzle Function({PuzzleGame game, bool? isDailyPuzzle, PuzzleData puzzle})'.
- '_Puzzle' is from 'package:lichess_mobile/src/model/puzzle/puzzle.dart' ('lib/src/model/puzzle/puzzle.dart').
- 'PuzzleGame' is from 'package:lichess_mobile/src/model/puzzle/puzzle.dart' ('lib/src/model/puzzle/puzzle.dart').
- 'PuzzleData' is from 'package:lichess_mobile/src/model/puzzle/puzzle.dart' ('lib/src/model/puzzle/puzzle.dart').
- 'Puzzle' is from 'package:lichess_mobile/src/model/puzzle/puzzle.dart' ('lib/src/model/puzzle/puzzle.dart').
}) = _Puzzle;
^
lib/src/model/puzzle/puzzle.dart:106:8: Error: The constructor function type '_PuzzleGamePlayer Function({String name, Side side, String? title, String userId})' isn't a subtype of 'PuzzleGamePlayer Function({String name, Side side, String? title, UserId userId})'.
- '_PuzzleGamePlayer' is from 'package:lichess_mobile/src/model/puzzle/puzzle.dart' ('lib/src/model/puzzle/puzzle.dart').
- 'Side' is from 'package:dartchess/src/models.dart' ('../.pub-cache/git/dartchess-8ba91719920bf08a39973c6222ad0bf2faa82cf4/lib/src/models.dart').
- 'PuzzleGamePlayer' is from 'package:lichess_mobile/src/model/puzzle/puzzle.dart' ('lib/src/model/puzzle/puzzle.dart').
- 'UserId' is from 'package:lichess_mobile/src/common/models.dart' ('lib/src/common/models.dart').
}) = _PuzzleGamePlayer;
^
lib/src/model/puzzle/puzzle_service.dart:54:8: Error: The constructor function type '_PuzzleContext Function({Puzzle puzzle, PuzzleTheme theme, UserId? userId})' isn't a subtype of 'PuzzleContext Function({PuzzleGlicko? glicko, Puzzle puzzle, IList<PuzzleRound>? rounds, PuzzleTheme theme, UserId? userId})'.
- '_PuzzleContext' is from 'package:lichess_mobile/src/model/puzzle/puzzle_service.dart' ('lib/src/model/puzzle/puzzle_service.dart').
- 'Puzzle' is from 'package:lichess_mobile/src/model/puzzle/puzzle.dart' ('lib/src/model/puzzle/puzzle.dart').
- 'PuzzleTheme' is from 'package:lichess_mobile/src/model/puzzle/puzzle_theme.dart' ('lib/src/model/puzzle/puzzle_theme.dart').
- 'UserId' is from 'package:lichess_mobile/src/common/models.dart' ('lib/src/common/models.dart').
- 'PuzzleContext' is from 'package:lichess_mobile/src/model/puzzle/puzzle_service.dart' ('lib/src/model/puzzle/puzzle_service.dart').
- 'PuzzleGlicko' is from 'package:lichess_mobile/src/model/puzzle/puzzle.dart' ('lib/src/model/puzzle/puzzle.dart').
- 'IList' is from 'package:fast_immutable_collections/src/ilist/ilist.dart' ('../.pub-cache/hosted/pub.dev/fast_immutable_collections-9.0.0/lib/src/ilist/ilist.dart').
- 'PuzzleRound' is from 'package:lichess_mobile/src/model/puzzle/puzzle.dart' ('lib/src/model/puzzle/puzzle.dart').
}) = _PuzzleContext;
^
lib/src/model/puzzle/puzzle_repository.dart:142:8: Error: The constructor function type '_PuzzleBatchResponse Function({PuzzleGlicko? glicko, IList<Puzzle> puzzles})' isn't a subtype of 'PuzzleBatchResponse Function({PuzzleGlicko? glicko, IList<Puzzle> puzzles, IList<PuzzleRound>? rounds})'.
- '_PuzzleBatchResponse' is from 'package:lichess_mobile/src/model/puzzle/puzzle_repository.dart' ('lib/src/model/puzzle/puzzle_repository.dart').
- 'PuzzleGlicko' is from 'package:lichess_mobile/src/model/puzzle/puzzle.dart' ('lib/src/model/puzzle/puzzle.dart').
- 'IList' is from 'package:fast_immutable_collections/src/ilist/ilist.dart' ('../.pub-cache/hosted/pub.dev/fast_immutable_collections-9.0.0/lib/src/ilist/ilist.dart').
- 'Puzzle' is from 'package:lichess_mobile/src/model/puzzle/puzzle.dart' ('lib/src/model/puzzle/puzzle.dart').
- 'PuzzleBatchResponse' is from 'package:lichess_mobile/src/model/puzzle/puzzle_repository.dart' ('lib/src/model/puzzle/puzzle_repository.dart').
- 'PuzzleRound' is from 'package:lichess_mobile/src/model/puzzle/puzzle.dart' ('lib/src/model/puzzle/puzzle.dart').
}) = _PuzzleBatchResponse;
^
lib/src/ui/puzzle/puzzle_screen_model.dart:307:8: Error: The constructor function type '_PuzzleScreenState Function({UciPath currentPath, PuzzleFeedback? feedback, UciPath initialPath, bool isChangingDifficulty, Move? lastMove, PuzzleMode mode, PuzzleContext? nextContext, IList<ViewNode> nodeList, Side pov, PuzzleResult? result, bool resultSent})' isn't a subtype of 'PuzzleScreenState Function({UciPath currentPath, PuzzleFeedback? feedback, PuzzleGlicko? glicko, UciPath initialPath, bool isChangingDifficulty, Move? lastMove, PuzzleMode mode, PuzzleContext? nextContext, IList<ViewNode> nodeList, Side pov, Puzzle puzzle, PuzzleResult? result, bool resultSent})'.
- '_PuzzleScreenState' is from 'package:lichess_mobile/src/ui/puzzle/puzzle_screen_model.dart' ('lib/src/ui/puzzle/puzzle_screen_model.dart').
- 'UciPath' is from 'package:lichess_mobile/src/common/uci.dart' ('lib/src/common/uci.dart').
- 'PuzzleFeedback' is from 'package:lichess_mobile/src/ui/puzzle/puzzle_screen_model.dart' ('lib/src/ui/puzzle/puzzle_screen_model.dart').
- 'Move' is from 'package:dartchess/src/models.dart' ('../.pub-cache/git/dartchess-8ba91719920bf08a39973c6222ad0bf2faa82cf4/lib/src/models.dart').
- 'PuzzleMode' is from 'package:lichess_mobile/src/ui/puzzle/puzzle_screen_model.dart' ('lib/src/ui/puzzle/puzzle_screen_model.dart').
- 'PuzzleContext' is from 'package:lichess_mobile/src/model/puzzle/puzzle_service.dart' ('lib/src/model/puzzle/puzzle_service.dart').
- 'IList' is from 'package:fast_immutable_collections/src/ilist/ilist.dart' ('../.pub-cache/hosted/pub.dev/fast_immutable_collections-9.0.0/lib/src/ilist/ilist.dart').
- 'ViewNode' is from 'package:lichess_mobile/src/common/tree.dart' ('lib/src/common/tree.dart').
- 'Side' is from 'package:dartchess/src/models.dart' ('../.pub-cache/git/dartchess-8ba91719920bf08a39973c6222ad0bf2faa82cf4/lib/src/models.dart').
- 'PuzzleResult' is from 'package:lichess_mobile/src/ui/puzzle/puzzle_screen_model.dart' ('lib/src/ui/puzzle/puzzle_screen_model.dart').
- 'PuzzleScreenState' is from 'package:lichess_mobile/src/ui/puzzle/puzzle_screen_model.dart' ('lib/src/ui/puzzle/puzzle_screen_model.dart').
- 'PuzzleGlicko' is from 'package:lichess_mobile/src/model/puzzle/puzzle.dart' ('lib/src/model/puzzle/puzzle.dart').
- 'Puzzle' is from 'package:lichess_mobile/src/model/puzzle/puzzle.dart' ('lib/src/model/puzzle/puzzle.dart').
}) = _PuzzleScreenState;
^
lib/src/common/brightness.dart:12:23: Error: The getter 'ref' isn't defined for the class 'CurrentBrightness'.
- 'CurrentBrightness' is from 'package:lichess_mobile/src/common/brightness.dart' ('lib/src/common/brightness.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'ref'.
final themeMode = ref.watch(
^^^
lib/src/common/brightness.dart:20:7: Error: The setter 'state' isn't defined for the class 'CurrentBrightness'.
- 'CurrentBrightness' is from 'package:lichess_mobile/src/common/brightness.dart' ('lib/src/common/brightness.dart').
Try correcting the name to the name of an existing setter, or defining a setter or field named 'state'.
state = window.platformBrightness;
^^^^^
lib/src/common/connectivity.dart:19:41: Error: 'ConnectivityRef' isn't a type.
Future<ConnectivityStatus> connectivity(ConnectivityRef ref) async {
^^^^^^^^^^^^^^^
lib/src/model/puzzle/puzzle_service.dart:184:19: Error: The getter 'rounds' isn't defined for the class 'PuzzleBatchResponse'.
- 'PuzzleBatchResponse' is from 'package:lichess_mobile/src/model/puzzle/puzzle_repository.dart' ('lib/src/model/puzzle/puzzle_repository.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'rounds'.
value.rounds,
^^^^^^
lib/src/model/puzzle/puzzle_providers.dart:38:11: Error: No named parameter with the name 'glicko'.
glicko: PuzzleGlicko(
^^^^^^
lib/src/ui/puzzle/puzzle_screen.dart:176:43: Error: The getter 'puzzle' isn't defined for the class 'PuzzleScreenState'.
- 'PuzzleScreenState' is from 'package:lichess_mobile/src/ui/puzzle/puzzle_screen_model.dart' ('lib/src/ui/puzzle/puzzle_screen_model.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'puzzle'.
puzzle: puzzleState.puzzle,
^^^^^^
lib/src/ui/puzzle/puzzle_screen.dart:185:37: Error: The getter 'glicko' isn't defined for the class 'PuzzleScreenState'.
- 'PuzzleScreenState' is from 'package:lichess_mobile/src/ui/puzzle/puzzle_screen_model.dart' ('lib/src/ui/puzzle/puzzle_screen_model.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'glicko'.
if (puzzleState.glicko != null)
^^^^^^
lib/src/ui/puzzle/puzzle_screen.dart:198:52: Error: The getter 'glicko' isn't defined for the class 'PuzzleScreenState'.
- 'PuzzleScreenState' is from 'package:lichess_mobile/src/ui/puzzle/puzzle_screen_model.dart' ('lib/src/ui/puzzle/puzzle_screen_model.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'glicko'.
begin: puzzleState.glicko!.rating,
^^^^^^
lib/src/ui/puzzle/puzzle_screen.dart:199:63: Error: The getter 'glicko' isn't defined for the class 'PuzzleContext'.
- 'PuzzleContext' is from 'package:lichess_mobile/src/model/puzzle/puzzle_service.dart' ('lib/src/model/puzzle/puzzle_service.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'glicko'.
end: puzzleState.nextContext?.glicko?.rating ??
^^^^^^
lib/src/ui/puzzle/puzzle_screen.dart:200:49: Error: The getter 'glicko' isn't defined for the class 'PuzzleScreenState'.
- 'PuzzleScreenState' is from 'package:lichess_mobile/src/ui/puzzle/puzzle_screen_model.dart' ('lib/src/ui/puzzle/puzzle_screen_model.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'glicko'.
puzzleState.glicko!.rating,
^^^^^^
lib/src/ui/puzzle/puzzle_screen.dart:363:34: Error: The getter 'puzzle' isn't defined for the class 'PuzzleScreenState'.
- 'PuzzleScreenState' is from 'package:lichess_mobile/src/ui/puzzle/puzzle_screen_model.dart' ('lib/src/ui/puzzle/puzzle_screen_model.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'puzzle'.
(a) => a.id == puzzleState.puzzle.puzzle.id,
^^^^^^
lib/src/ui/puzzle/puzzle_screen.dart:399:60: Error: The getter 'puzzle' isn't defined for the class 'PuzzleScreenState'.
- 'PuzzleScreenState' is from 'package:lichess_mobile/src/ui/puzzle/puzzle_screen_model.dart' ('lib/src/ui/puzzle/puzzle_screen_model.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'puzzle'.
isCurrent: attempt.id == puzzleState.puzzle.puzzle.id,
^^^^^^
lib/src/ui/puzzle/puzzle_screen.dart:504:39: Error: The getter 'puzzle' isn't defined for the class 'PuzzleScreenState'.
- 'PuzzleScreenState' is from 'package:lichess_mobile/src/ui/puzzle/puzzle_screen_model.dart' ('lib/src/ui/puzzle/puzzle_screen_model.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'puzzle'.
final isDailyPuzzle = puzzleState.puzzle.isDailyPuzzle == true;
^^^^^^
lib/src/ui/puzzle/puzzle_screen.dart:527:59: Error: The getter 'puzzle' isn't defined for the class 'PuzzleScreenState'.
- 'PuzzleScreenState' is from 'package:lichess_mobile/src/ui/puzzle/puzzle_screen_model.dart' ('lib/src/ui/puzzle/puzzle_screen_model.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'puzzle'.
'$kLichessHost/training/${puzzleState.puzzle.puzzle.id}',
^^^^^^
lib/src/ui/puzzle/puzzle_themes_screen.dart:28:40: Error: Undefined name 'connectivityProvider'.
final connectivity = await ref.watch(connectivityProvider.future);
^^^^^^^^^^^^^^^^^^^^
lib/src/ui/puzzle/puzzle_themes_screen.dart:30:30: Error: The getter 'isOnline' isn't defined for the class 'Object?'.
- 'Object' is from 'dart:core'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'isOnline'.
return Tuple2(connectivity.isOnline, themes);
^^^^^^^^
lib/src/model/puzzle/puzzle_repository.dart:98:15: Error: No named parameter with the name 'isDailyPuzzle'.
isDailyPuzzle: true,
^^^^^^^^^^^^^
lib/src/model/puzzle/puzzle_session.dart:54:58: Error: The getter 'id' isn't defined for the class 'PuzzleRound'.
- 'PuzzleRound' is from 'package:lichess_mobile/src/model/puzzle/puzzle.dart' ('lib/src/model/puzzle/puzzle.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'id'.
final round = rounds.firstWhereOrNull((r) => r.id == a.id);
^^
lib/src/model/puzzle/puzzle_session.dart:55:63: Error: The getter 'ratingDiff' isn't defined for the class 'PuzzleRound'.
- 'PuzzleRound' is from 'package:lichess_mobile/src/model/puzzle/puzzle.dart' ('lib/src/model/puzzle/puzzle.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'ratingDiff'.
return round != null ? a.copyWith(ratingDiff: round.ratingDiff) : a;
^^^^^^^^^^
lib/src/ui/puzzle/puzzle_screen_model.dart:46:32: Error: The getter 'puzzle' isn't defined for the class 'PuzzleScreenState'.
- 'PuzzleScreenState' is from 'package:lichess_mobile/src/ui/puzzle/puzzle_screen_model.dart' ('lib/src/ui/puzzle/puzzle_screen_model.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'puzzle'.
final isGoodMove = state.puzzle.testSolution(movesToTest);
^^^^^^
lib/src/ui/puzzle/puzzle_screen_model.dart:55:19: Error: The getter 'puzzle' isn't defined for the class 'PuzzleScreenState'.
- 'PuzzleScreenState' is from 'package:lichess_mobile/src/ui/puzzle/puzzle_screen_model.dart' ('lib/src/ui/puzzle/puzzle_screen_model.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'puzzle'.
state.puzzle.puzzle.solution.getOrNull(movesToTest.length);
^^^^^^
lib/src/ui/puzzle/puzzle_screen_model.dart:157:23: Error: The getter 'glicko' isn't defined for the class 'PuzzleContext'.
- 'PuzzleContext' is from 'package:lichess_mobile/src/model/puzzle/puzzle_service.dart' ('lib/src/model/puzzle/puzzle_service.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'glicko'.
glicko: context.glicko,
^^^^^^
lib/src/ui/puzzle/puzzle_screen_model.dart:196:17: Error: The getter 'puzzle' isn't defined for the class 'PuzzleScreenState'.
- 'PuzzleScreenState' is from 'package:lichess_mobile/src/ui/puzzle/puzzle_screen_model.dart' ('lib/src/ui/puzzle/puzzle_screen_model.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'puzzle'.
state.puzzle.puzzle.id,
^^^^^^
lib/src/ui/puzzle/puzzle_screen_model.dart:206:19: Error: The getter 'puzzle' isn't defined for the class 'PuzzleScreenState'.
- 'PuzzleScreenState' is from 'package:lichess_mobile/src/ui/puzzle/puzzle_screen_model.dart' ('lib/src/ui/puzzle/puzzle_screen_model.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'puzzle'.
id: state.puzzle.puzzle.id,
^^^^^^
lib/src/ui/puzzle/puzzle_screen_model.dart:212:26: Error: The getter 'rounds' isn't defined for the class 'PuzzleContext'.
- 'PuzzleContext' is from 'package:lichess_mobile/src/model/puzzle/puzzle_service.dart' ('lib/src/model/puzzle/puzzle_service.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'rounds'.
final rounds = next?.rounds;
^^^^^^
lib/src/ui/puzzle/puzzle_screen_model.dart:258:31: Error: The getter 'puzzle' isn't defined for the class 'PuzzleScreenState'.
- 'PuzzleScreenState' is from 'package:lichess_mobile/src/ui/puzzle/puzzle_screen_model.dart' ('lib/src/ui/puzzle/puzzle_screen_model.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'puzzle'.
final posAndNodes = state.puzzle.puzzle.solution.foldIndexed(
^^^^^^
lib/src/ui/puzzle/puzzle_screen_model.dart:270:28: Error: The argument type 'num' can't be assigned to the parameter type 'int'.
ply: fromPly + index,
^
Target kernel_snapshot failed: Exception
FAILURE: Build failed with an exception.
* Where:
Script '/opt/flutter/packages/flutter_tools/gradle/flutter.gradle' line: 1151
* What went wrong:
Execution failed for task ':app:compileFlutterBuildDebug'.
> Process 'command '/opt/flutter/bin/flutter'' finished with non-zero exit value 1
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 56s
Running Gradle task 'assembleDebug'... 56.5s
Exception: Gradle task assembleDebug failed with exit code 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment