Skip to content
This repository was archived by the owner on May 20, 2025. It is now read-only.

Commit 3fc30d5

Browse files
update dictionary
1 parent 70edd02 commit 3fc30d5

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

dictionary.txt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -216,10 +216,6 @@ reproducibility
216216
misconfigurations
217217
DSL
218218
UI
219-
colour
220-
preflight
221-
nav
222-
MacOS
223219

224220
^.+[-:_]\w+$
225221
[a-z]+([A-Z0-9]|[A-Z0-9]\w+)

docs/guides/dart/flutter.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ api.post("/favorite", (ctx) async {
187187

188188
### Cross-Origin Resource Sharing
189189

190-
When we are making requests to our backend from our frontend, we will run into issues with Cross-Origin Resource Sharing (CORS) errors. We can handle this by adding CORS headers to our responses and adding OPTIONS methods to respond to preflight requests from the frontend. If you want to learn more about CORS, you can read [here](https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS). Create a file called `lib/cors.dart` which is where we will define the middleware and options handler.
190+
When we are making requests to our backend from our frontend, we will run into issues with Cross-Origin Resource Sharing (CORS) errors. We can handle this by adding CORS headers to our responses and adding OPTIONS methods to respond to pre-flight requests from the frontend. If you want to learn more about CORS, you can read [here](https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS). Create a file called `lib/cors.dart` which is where we will define the middleware and options handler.
191191

192192
```dart {{ label: "lib/cors.dart" }}cors.
193193
import 'package:nitric_sdk/nitric.dart';
@@ -516,7 +516,7 @@ class Application extends StatelessWidget {
516516
title: 'Word Generator App',
517517
theme: ThemeData(
518518
useMaterial3: true,
519-
// Set the default colour for the application.
519+
// Set the default color for the application.
520520
colorScheme: ColorScheme.fromSeed(seedColor: Colors.blue),
521521
),
522522
// Set the home page to the generator page
@@ -715,7 +715,7 @@ You might notice that at no point is the favorites list actually being fetched,
715715

716716
### Navigation
717717

718-
To finish, we'll add the navigation page. This will wrap the `GeneratorPage` and the `favoritesPage` and allow a user to switch between them through a nav bar. This will be responsive, with a desktop having it appear on the side and a mobile appearing at the bottom. It will be a `StatefulWidget` so it can maintain the page that is being viewed. In the `initState` we will fetch the favorites data.
718+
To finish, we'll add the navigation page. This will wrap the `GeneratorPage` and the `favoritesPage` and allow a user to switch between them through a navigation bar. This will be responsive, with a desktop having it appear on the side and a mobile appearing at the bottom. It will be a `StatefulWidget` so it can maintain the page that is being viewed. In the `initState` we will fetch the favorites data.
719719

720720
Start by scaffolding the main page `StatefulWidget` and `State`.
721721

@@ -745,7 +745,7 @@ class _HomePageState extends State<HomePage> {
745745
}
746746
```
747747

748-
We then want to fill out the `build` function so it returns the current page. This will be wrapped in a `ColoredBox` that has a consistent background colour between all pages.
748+
We then want to fill out the `build` function so it returns the current page. This will be wrapped in a `ColoredBox` that has a consistent background color between all pages.
749749

750750
```dart {{ label: "lib/pages/home.dart" }}
751751
@override

0 commit comments

Comments
 (0)