Skip to content

Commit

Permalink
Update focus, improve footer
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeDoctorDE committed Oct 19, 2024
1 parent fff7c13 commit facc7ff
Show file tree
Hide file tree
Showing 11 changed files with 176 additions and 112 deletions.
8 changes: 4 additions & 4 deletions api/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -251,10 +251,10 @@ packages:
dependency: transitive
description:
name: http_parser
sha256: "40f592dd352890c3b60fec1b68e786cefb9603e05ff303dbc4dda49b304ecdf4"
sha256: "76d306a1c3afb33fe82e2bbacad62a61f409b5634c915fceb0d799de1a913360"
url: "https://pub.dev"
source: hosted
version: "4.1.0"
version: "4.1.1"
io:
dependency: transitive
description:
Expand Down Expand Up @@ -316,10 +316,10 @@ packages:
dependency: transitive
description:
name: matcher
sha256: d2323aa2060500f906aa31a895b4030b6da3ebdcc5619d14ce1aada65cd161cb
sha256: dc58c723c3c24bf8d3e2d3ad3f2f9d7bd9cf43ec6feaa64181775e60190153f2
url: "https://pub.dev"
source: hosted
version: "0.12.16+1"
version: "0.12.17"
meta:
dependency: transitive
description:
Expand Down
2 changes: 1 addition & 1 deletion app/lib/bloc/world/state.mapper.dart
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ class ClientWorldStateMapper extends ClassMapperBase<ClientWorldState> {
Field('searchTerm', _$searchTerm, opt: true, def: '');
static bool _$showDuplicates(ClientWorldState v) => v.showDuplicates;
static const Field<ClientWorldState, bool> _f$showDuplicates =
Field('showDuplicates', _$showDuplicates, opt: true, def: true);
Field('showDuplicates', _$showDuplicates, opt: true, def: false);

@override
final MappableFields<ClientWorldState> fields = const {
Expand Down
12 changes: 9 additions & 3 deletions app/lib/pages/game/page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ typedef Blocs = (MultiplayerCubit, WorldBloc);
class _GamePageState extends State<GamePage> {
Future<Blocs>? _bloc;
final ContextMenuController _contextMenuController = ContextMenuController();
final FocusNode _focusNode = FocusNode();

@override
void initState() {
Expand Down Expand Up @@ -99,6 +100,7 @@ class _GamePageState extends State<GamePage> {
@override
void dispose() {
super.dispose();
_focusNode.dispose();
_bloc?.then((bloc) {
bloc.$1.close();
bloc.$2.close();
Expand Down Expand Up @@ -161,9 +163,12 @@ class _GamePageState extends State<GamePage> {
.enterEditMode
: AppLocalizations.of(context)
.exitEditMode,
onPressed: () => context
.read<WorldBloc>()
.process(HandChanged.toggle()),
onPressed: () {
context
.read<WorldBloc>()
.process(HandChanged.toggle());
_focusNode.requestFocus();
},
);
})
],
Expand Down Expand Up @@ -225,6 +230,7 @@ class _GamePageState extends State<GamePage> {
contextMenuController: _contextMenuController,
onEscape: () => Scaffold.of(context).openDrawer(),
),
focusNode: _focusNode,
initialActiveOverlays: ['dialogs', 'filter'],
overlayBuilderMap: {
'dialogs': (context, game) => GameDialogOverlay(),
Expand Down
4 changes: 2 additions & 2 deletions app/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1353,10 +1353,10 @@ packages:
dependency: transitive
description:
name: win32
sha256: e5c39a90447e7c81cfec14b041cdbd0d0916bd9ebbc7fe02ab69568be703b9bd
sha256: "2294c64768987ea280b43a3d8357d42d5679f3e2b5b69b602be45b2abbd165b0"
url: "https://pub.dev"
source: hosted
version: "5.6.0"
version: "5.6.1"
win32_registry:
dependency: transitive
description:
Expand Down
18 changes: 0 additions & 18 deletions app/vercel.json

This file was deleted.

28 changes: 9 additions & 19 deletions docs/README.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,7 @@
# Starlight Starter Kit: Basics
# Setonix Documentation

[![Built with Starlight](https://astro.badg.es/v2/built-with-starlight/tiny.svg)](https://starlight.astro.build)

```
npm create astro@latest -- --template starlight
```

[![Open in StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](https://stackblitz.com/github/withastro/starlight/tree/main/examples/basics)
[![Open with CodeSandbox](https://assets.codesandbox.io/github/button-edit-lime.svg)](https://codesandbox.io/p/sandbox/github/withastro/starlight/tree/main/examples/basics)
[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Fwithastro%2Fstarlight%2Ftree%2Fmain%2Fexamples%2Fbasics&project-name=my-starlight-docs&repository-name=my-starlight-docs)

> 🧑‍🚀 **Seasoned astronaut?** Delete this file. Have fun!
## 🚀 Project Structure

Inside of your Astro + Starlight project, you'll see the following folders and files:
Expand Down Expand Up @@ -40,14 +30,14 @@ Static assets, like favicons, can be placed in the `public/` directory.

All commands are run from the root of the project, from a terminal:

| Command | Action |
| :------------------------ | :----------------------------------------------- |
| `npm install` | Installs dependencies |
| `npm run dev` | Starts local dev server at `localhost:4321` |
| `npm run build` | Build your production site to `./dist/` |
| `npm run preview` | Preview your build locally, before deploying |
| `npm run astro ...` | Run CLI commands like `astro add`, `astro check` |
| `npm run astro -- --help` | Get help using the Astro CLI |
| Command | Action |
| :--------------------- | :----------------------------------------------- |
| `pnpm install` | Installs dependencies |
| `pnpm dev` | Starts local dev server at `localhost:4321` |
| `pnpm build` | Build your production site to `./dist/` |
| `pnpm preview` | Preview your build locally, before deploying |
| `pnpm astro ...` | Run CLI commands like `astro add`, `astro check` |
| `pnpm astro -- --help` | Get help using the Astro CLI |

## 👀 Want to learn more?

Expand Down
2 changes: 1 addition & 1 deletion docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@
},
"packageManager": "[email protected]",
"devDependencies": {
"sass": "^1.80.2"
"sass": "^1.80.3"
}
}
Loading

0 comments on commit facc7ff

Please sign in to comment.