-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: LICENSE MIT -> GNU AFFERO GENERAL PUBLIC
- Loading branch information
1 parent
a39aca4
commit 58ac80f
Showing
7 changed files
with
701 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 10 additions & 18 deletions
28
lib/subgames/quick_game/dialogs/core/dialog_controller.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,11 @@ | ||
import 'package:flutter/material.dart'; | ||
import 'package:word_by_word_game/pack_core/global_states/global_states.dart'; | ||
import 'package:word_by_word_game/common_imports.dart'; | ||
|
||
final class DialogController { | ||
DialogController({ | ||
required this.showLevelLostDialog, | ||
required this.showLevelWinDialog, | ||
required this.showLevelWordSuggestionDialog, | ||
required this.closeDialog, | ||
required this.closeDialogAndResume, | ||
required this.showTechnologiesTree, | ||
}); | ||
final ValueChanged<EndLevelEvent> showLevelLostDialog; | ||
final ValueChanged<EndLevelEvent> showLevelWinDialog; | ||
final VoidCallback closeDialog; | ||
final VoidCallback closeDialogAndResume; | ||
final VoidCallback showLevelWordSuggestionDialog; | ||
final VoidCallback showTechnologiesTree; | ||
} | ||
typedef DialogController = ({ | ||
ValueChanged<EndLevelEvent> showLevelLostDialog, | ||
ValueChanged<EndLevelEvent> showLevelWinDialog, | ||
VoidCallback closeDialog, | ||
VoidCallback closeDialogAndResume, | ||
VoidCallback showLevelWordSuggestionDialog, | ||
VoidCallback showTechnologiesTree, | ||
ValueChanged<TechnologyLevelIndex> showTechLevelAchieveDialog, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
lib/subgames/quick_game/dialogs/technologies/tech_level_achieved_dialog.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import 'package:flutter/material.dart'; | ||
|
||
class TechLevelAchievedDialog extends StatelessWidget { | ||
const TechLevelAchievedDialog({ | ||
required this.onClose, | ||
super.key, | ||
}); | ||
|
||
final VoidCallback onClose; | ||
|
||
@override | ||
Widget build(final BuildContext context) => const Placeholder(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters