-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* upgrade flutter 3.24 * - Remove: - remoteStatUIProvider - statDrawer from DefaultRemoteConfig - all related UI options to the new UI stats * - home UI for tablet * - detail screen horizontal tablet UI * tablet utils to check horizontal size grid has a static extent of 192 and spacing of 8 * listen changes stats in provider * change style of background in stat panel change systemNavigationBarColor to match app bar * empty game list widget * new assets * revert grid to MaxCrossAxisExtent * add new messages and icons * update version * - update amiibos ids - update version in yaml
- Loading branch information
Showing
57 changed files
with
676 additions
and
544 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
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
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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,3 @@ | ||
class RemoteKey { | ||
static const String statDrawer = 'stat_drawer'; | ||
static const String ownedCategories = 'split_own_categories'; | ||
} |
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
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,15 @@ | ||
part of 'resources.dart'; | ||
|
||
class GameIcons { | ||
GameIcons._(); | ||
|
||
static const String nintendoSwitch = 'assets/game_icons/nintendo-switch.webp'; | ||
static const String pacmanGhost = 'assets/game_icons/pacman-ghost.webp'; | ||
static const String pacman = 'assets/game_icons/pacman.webp'; | ||
static const String pokeball = 'assets/game_icons/pokeball.webp'; | ||
static const String pokemon = 'assets/game_icons/pokemon.webp'; | ||
static const String superMario = 'assets/game_icons/super-mario.webp'; | ||
static const String superMarioToad = | ||
'assets/game_icons/super_mario_toad.webp'; | ||
static const String tlozSword = 'assets/game_icons/tloz_sword.webp'; | ||
} |
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 +1,3 @@ | ||
part 'assets_icons.dart'; | ||
|
||
part 'game_assets_icons.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
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,49 @@ | ||
import 'dart:async'; | ||
|
||
import 'package:amiibo_network/model/search_result.dart'; | ||
import 'package:amiibo_network/model/stat.dart'; | ||
import 'package:amiibo_network/riverpod/query_provider.dart'; | ||
import 'package:amiibo_network/riverpod/service_provider.dart'; | ||
import 'package:hooks_riverpod/hooks_riverpod.dart'; | ||
|
||
final statsProvider = StreamProvider.autoDispose<List<Stat>>((ref) async* { | ||
final service = ref.watch(serviceProvider.notifier); | ||
final streamController = StreamController<Filter>(); | ||
|
||
void listen() { | ||
streamController.sink.add(ref.read(filterProvider)); | ||
} | ||
|
||
service.addListener(listen); | ||
|
||
final subscription = ref.listen( | ||
filterProvider, | ||
(previous, next) { | ||
if (next != previous) { | ||
streamController.sink.add(next); | ||
} | ||
}, | ||
fireImmediately: true, | ||
); | ||
|
||
ref.onDispose(() { | ||
subscription.close(); | ||
service.removeListener(listen); | ||
streamController.close(); | ||
}); | ||
|
||
yield* streamController.stream.asyncMap((filter) async => <Stat>[ | ||
...await service.fetchStats( | ||
categoryAttributes: filter.categoryAttributes, | ||
searchAttributes: filter.searchAttributes, | ||
hiddenCategories: filter.hiddenType, | ||
), | ||
...await service.fetchStats( | ||
group: true, | ||
categoryAttributes: filter.categoryAttributes, | ||
searchAttributes: filter.searchAttributes, | ||
hiddenCategories: filter.hiddenType, | ||
), | ||
], | ||
); | ||
}); |
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.