games
Some checks failed
Some checks failed
This commit is contained in:
parent
689636fbc4
commit
05831c8a9e
5 changed files with 61 additions and 0 deletions
6
games/packages/game_tests/analysis_options.yaml
Normal file
6
games/packages/game_tests/analysis_options.yaml
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
include: package:flutter_lints/flutter.yaml
|
||||||
|
|
||||||
|
linter:
|
||||||
|
rules:
|
||||||
|
prefer_const_constructors: true
|
||||||
|
prefer_const_literals_to_create_immutables: true
|
||||||
6
games/packages/game_tests/lib/game_tests.dart
Normal file
6
games/packages/game_tests/lib/game_tests.dart
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
library game_tests;
|
||||||
|
|
||||||
|
/// Entry point for shared game test utilities and widgets.
|
||||||
|
/// Extend this package with data models, state helpers, and UI.
|
||||||
|
export 'src/config/game_test_settings.dart';
|
||||||
|
export 'src/game_tests_placeholder.dart';
|
||||||
|
|
@ -0,0 +1,24 @@
|
||||||
|
/// Configuration for game test experience: delays, sounds, haptics.
|
||||||
|
class GameTestSettings {
|
||||||
|
const GameTestSettings({
|
||||||
|
this.enableSounds = true,
|
||||||
|
this.enableHaptics = true,
|
||||||
|
this.feedbackDelay = const Duration(milliseconds: 1500),
|
||||||
|
});
|
||||||
|
|
||||||
|
final bool enableSounds;
|
||||||
|
final bool enableHaptics;
|
||||||
|
final Duration feedbackDelay;
|
||||||
|
|
||||||
|
GameTestSettings copyWith({
|
||||||
|
bool? enableSounds,
|
||||||
|
bool? enableHaptics,
|
||||||
|
Duration? feedbackDelay,
|
||||||
|
}) {
|
||||||
|
return GameTestSettings(
|
||||||
|
enableSounds: enableSounds ?? this.enableSounds,
|
||||||
|
enableHaptics: enableHaptics ?? this.enableHaptics,
|
||||||
|
feedbackDelay: feedbackDelay ?? this.feedbackDelay,
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,6 @@
|
||||||
|
/// Placeholder for game tests shared package.
|
||||||
|
///
|
||||||
|
/// Add shared models, mappers, and widgets for Mnemo Cards game tests here.
|
||||||
|
class GameTestsPlaceholder {
|
||||||
|
const GameTestsPlaceholder();
|
||||||
|
}
|
||||||
19
games/packages/game_tests/pubspec.yaml
Normal file
19
games/packages/game_tests/pubspec.yaml
Normal file
|
|
@ -0,0 +1,19 @@
|
||||||
|
name: game_tests
|
||||||
|
description: "Shared game test logic and UI components for Mnemo Cards games"
|
||||||
|
version: 0.0.1
|
||||||
|
homepage: https://mnemo-cards.online
|
||||||
|
|
||||||
|
environment:
|
||||||
|
sdk: ^3.8.1
|
||||||
|
flutter: ">=3.19.0"
|
||||||
|
|
||||||
|
dependencies:
|
||||||
|
flutter:
|
||||||
|
sdk: flutter
|
||||||
|
|
||||||
|
dev_dependencies:
|
||||||
|
flutter_test:
|
||||||
|
sdk: flutter
|
||||||
|
flutter_lints: ^5.0.0
|
||||||
|
|
||||||
|
flutter:
|
||||||
Loading…
Reference in a new issue