-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* renaming games to collection page * progress on getting the random game picker to work * progress on getting the game spinner working * adding filters header * adding spinner button and collection filters (wip) * adding collections filtering * fixing an issue with play history of games that were removed from all of the collections * adding empyt state * adding spinner selection dialog * slight refactor and fixing of icon ripple effect * fixing caching of the spinner images and putting constraints on it for larger screens
- Loading branch information
Showing
48 changed files
with
3,136 additions
and
860 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
class AnimationTags { | ||
static const String boardGameHeroTag = 'boardGameDetalsImageHeroTag'; | ||
static const String boardGameHeroTag = 'boardGameDetailsImageHeroTag'; | ||
static const String gameSpinnerBoardGameHeroTag = 'gameSpinnerImageHeroTag'; | ||
static const String playerImageHeroTag = 'playerHeroTag'; | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,9 +21,13 @@ class AppText { | |
static const dayBeforeYesteday = 'day before yesterday'; | ||
static const daysAgoFormat = '%s days ago'; | ||
|
||
static const homePageGamesTabTitle = 'Games'; | ||
static const ownedCollectionToggleButtonText = 'Owned'; | ||
static const friendsCollectionToggleButtonText = 'Friends'; | ||
static const whishlistCollectionToggleButtonText = 'Whishlist'; | ||
|
||
static const homePageCollectionsTabTitle = 'Collections'; | ||
static const homePageSearchTabTitle = 'Search'; | ||
static const homePageGamesHistoryTabTitle = 'Play History'; | ||
static const homePagePlaysTabTitle = 'Plays'; | ||
static const homePageGamesPlayersTabTitle = 'Players'; | ||
|
||
static const aboutPageAuthorSectionTitle = 'Author'; | ||
|
@@ -182,10 +186,6 @@ class AppText { | |
static const settingsPageRestoreFailedMessage = | ||
'Unfortunately we ran into a problem with restoring your data. Please try again or contact support at [email protected]'; | ||
|
||
static const playHistoryPageEmptyTitle = "You haven't played any games yet"; | ||
static const playHistoryPageEmptyTextPartTwo = | ||
'Start recording your plays in the app and this screen will automatically populate with a history of your playthroughs.'; | ||
|
||
static const gamePlaytimeFormat = '%s min'; | ||
static const gamePlayersSingularFormat = '%i players'; | ||
static const gamePlayersPluralFormat = '%i players'; | ||
|
@@ -195,7 +195,28 @@ class AppText { | |
static const collectionsPageTitle = 'Collections'; | ||
static const settingsPageTitle = 'Settings'; | ||
static const newPlayerPageTitle = 'New Player'; | ||
static const playHistoryPageTitle = 'Play History'; | ||
static const playsPageTitle = 'Plays'; | ||
|
||
static const playsPageHistoryTabEmptyTitle = "You haven't played any games yet"; | ||
static const playPageHistoryTabEmptySubtitle = | ||
'Start recording your plays in the app and this screen will automatically populate with a history of your playthroughs.'; | ||
|
||
static const playsPageSelectGameTabEmptyTitle = 'Your collections are empty'; | ||
static const playsPageSelectGameTabEmptySubtitle = | ||
'Add board games to your collection(s) by searching for them or by importing them from your BGG collection(s).'; | ||
|
||
static const playsPageSelectGameNoBoardGamesToShuffleTitle = "There's no games to select from"; | ||
static const playsPageSelectGameNoBoardGamesToShuffleSubtitle = | ||
"There's no matches for the filters you picked. Refine them to spin the wheel."; | ||
|
||
static const playsPageHistoryTabTitle = 'History'; | ||
static const playsPageStatisticsTabTitle = 'Stats'; | ||
static const playsPageSelectGameTabTitle = 'Select Game'; | ||
static const playsPageGameSpinnerFilterSectionTitle = 'Filters'; | ||
static const playsPageGameSpinnerCollectionsFilter = 'Collections'; | ||
static const playsPageGameSpinnerSpinButtonText = 'Spin'; | ||
static const playsPageGameSpinnerSelectedGamePlayButtonText = 'Play'; | ||
static const playsPageGameSpinnerSelectedGameSpinAgainButtonText = 'Spin Again'; | ||
|
||
static const drawerVersionFormat = 'Version %s'; | ||
static const drawerReleaseNotes = 'Release notes'; | ||
|
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
enum PlaysTab { | ||
history, | ||
statistics, | ||
selectGame, | ||
} | ||
|
||
extension ToPlaysTab on int { | ||
PlaysTab toPlaysTab() { | ||
switch (this) { | ||
case 0: | ||
return PlaysTab.history; | ||
case 1: | ||
return PlaysTab.selectGame; | ||
} | ||
|
||
return PlaysTab.history; | ||
} | ||
} |
16 changes: 16 additions & 0 deletions
16
board_games_companion/lib/extensions/board_game_extentions.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,16 @@ | ||
import 'package:board_games_companion/models/hive/board_game_details.dart'; | ||
|
||
import '../common/enums/collection_type.dart'; | ||
|
||
extension BoardGameDetailsExtensions on Iterable<BoardGameDetails> { | ||
Iterable<BoardGameDetails> inCollection(CollectionType collectionType) { | ||
switch (collectionType) { | ||
case CollectionType.owned: | ||
return where((boardGame) => boardGame.isOwned ?? false); | ||
case CollectionType.friends: | ||
return where((boardGame) => boardGame.isFriends ?? false); | ||
case CollectionType.wishlist: | ||
return where((boardGame) => boardGame.isOnWishlist ?? false); | ||
} | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Oops, something went wrong.