Skip to content

Commit facc7ff

Browse files
committed
Update focus, improve footer
1 parent fff7c13 commit facc7ff

File tree

11 files changed

+176
-112
lines changed

11 files changed

+176
-112
lines changed

api/pubspec.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -251,10 +251,10 @@ packages:
251251
dependency: transitive
252252
description:
253253
name: http_parser
254-
sha256: "40f592dd352890c3b60fec1b68e786cefb9603e05ff303dbc4dda49b304ecdf4"
254+
sha256: "76d306a1c3afb33fe82e2bbacad62a61f409b5634c915fceb0d799de1a913360"
255255
url: "https://pub.dev"
256256
source: hosted
257-
version: "4.1.0"
257+
version: "4.1.1"
258258
io:
259259
dependency: transitive
260260
description:
@@ -316,10 +316,10 @@ packages:
316316
dependency: transitive
317317
description:
318318
name: matcher
319-
sha256: d2323aa2060500f906aa31a895b4030b6da3ebdcc5619d14ce1aada65cd161cb
319+
sha256: dc58c723c3c24bf8d3e2d3ad3f2f9d7bd9cf43ec6feaa64181775e60190153f2
320320
url: "https://pub.dev"
321321
source: hosted
322-
version: "0.12.16+1"
322+
version: "0.12.17"
323323
meta:
324324
dependency: transitive
325325
description:

app/lib/bloc/world/state.mapper.dart

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/lib/pages/game/page.dart

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ typedef Blocs = (MultiplayerCubit, WorldBloc);
4444
class _GamePageState extends State<GamePage> {
4545
Future<Blocs>? _bloc;
4646
final ContextMenuController _contextMenuController = ContextMenuController();
47+
final FocusNode _focusNode = FocusNode();
4748

4849
@override
4950
void initState() {
@@ -99,6 +100,7 @@ class _GamePageState extends State<GamePage> {
99100
@override
100101
void dispose() {
101102
super.dispose();
103+
_focusNode.dispose();
102104
_bloc?.then((bloc) {
103105
bloc.$1.close();
104106
bloc.$2.close();
@@ -161,9 +163,12 @@ class _GamePageState extends State<GamePage> {
161163
.enterEditMode
162164
: AppLocalizations.of(context)
163165
.exitEditMode,
164-
onPressed: () => context
165-
.read<WorldBloc>()
166-
.process(HandChanged.toggle()),
166+
onPressed: () {
167+
context
168+
.read<WorldBloc>()
169+
.process(HandChanged.toggle());
170+
_focusNode.requestFocus();
171+
},
167172
);
168173
})
169174
],
@@ -225,6 +230,7 @@ class _GamePageState extends State<GamePage> {
225230
contextMenuController: _contextMenuController,
226231
onEscape: () => Scaffold.of(context).openDrawer(),
227232
),
233+
focusNode: _focusNode,
228234
initialActiveOverlays: ['dialogs', 'filter'],
229235
overlayBuilderMap: {
230236
'dialogs': (context, game) => GameDialogOverlay(),

app/pubspec.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1353,10 +1353,10 @@ packages:
13531353
dependency: transitive
13541354
description:
13551355
name: win32
1356-
sha256: e5c39a90447e7c81cfec14b041cdbd0d0916bd9ebbc7fe02ab69568be703b9bd
1356+
sha256: "2294c64768987ea280b43a3d8357d42d5679f3e2b5b69b602be45b2abbd165b0"
13571357
url: "https://pub.dev"
13581358
source: hosted
1359-
version: "5.6.0"
1359+
version: "5.6.1"
13601360
win32_registry:
13611361
dependency: transitive
13621362
description:

app/vercel.json

Lines changed: 0 additions & 18 deletions
This file was deleted.

docs/README.md

Lines changed: 9 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,7 @@
1-
# Starlight Starter Kit: Basics
1+
# Setonix Documentation
22

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

5-
```
6-
npm create astro@latest -- --template starlight
7-
```
8-
9-
[![Open in StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](https://stackblitz.com/github/withastro/starlight/tree/main/examples/basics)
10-
[![Open with CodeSandbox](https://assets.codesandbox.io/github/button-edit-lime.svg)](https://codesandbox.io/p/sandbox/github/withastro/starlight/tree/main/examples/basics)
11-
[![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)
12-
13-
> 🧑‍🚀 **Seasoned astronaut?** Delete this file. Have fun!
14-
155
## 🚀 Project Structure
166

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

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

43-
| Command | Action |
44-
| :------------------------ | :----------------------------------------------- |
45-
| `npm install` | Installs dependencies |
46-
| `npm run dev` | Starts local dev server at `localhost:4321` |
47-
| `npm run build` | Build your production site to `./dist/` |
48-
| `npm run preview` | Preview your build locally, before deploying |
49-
| `npm run astro ...` | Run CLI commands like `astro add`, `astro check` |
50-
| `npm run astro -- --help` | Get help using the Astro CLI |
33+
| Command | Action |
34+
| :--------------------- | :----------------------------------------------- |
35+
| `pnpm install` | Installs dependencies |
36+
| `pnpm dev` | Starts local dev server at `localhost:4321` |
37+
| `pnpm build` | Build your production site to `./dist/` |
38+
| `pnpm preview` | Preview your build locally, before deploying |
39+
| `pnpm astro ...` | Run CLI commands like `astro add`, `astro check` |
40+
| `pnpm astro -- --help` | Get help using the Astro CLI |
5141

5242
## 👀 Want to learn more?
5343

docs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,6 @@
2626
},
2727
"packageManager": "[email protected]",
2828
"devDependencies": {
29-
"sass": "^1.80.2"
29+
"sass": "^1.80.3"
3030
}
3131
}

0 commit comments

Comments
 (0)