From cf00e9aa025efed948a93342584ac6570ab74734 Mon Sep 17 00:00:00 2001 From: Alexandru Mariuti Date: Mon, 27 Jan 2025 18:01:49 +0100 Subject: [PATCH] docs: update installing --- docs/src/content/docs/examples/solidart.mdx | 20 ++++++++++++++++++++ docs/src/content/docs/installing.md | 6 ++---- 2 files changed, 22 insertions(+), 4 deletions(-) diff --git a/docs/src/content/docs/examples/solidart.mdx b/docs/src/content/docs/examples/solidart.mdx index 72f2834..e09a823 100644 --- a/docs/src/content/docs/examples/solidart.mdx +++ b/docs/src/content/docs/examples/solidart.mdx @@ -4,5 +4,25 @@ description: TODO --- import { LinkCard } from '@astrojs/starlight/components'; +import { FileTree } from '@astrojs/starlight/components'; + +Let's look at the file structure: + + + +- controllers + - todos.dart +- domain + - todo.dart +- pages + - todos.dart +- widgets + - todo_item.dart + - todos_body.dart + - todos_list.dart + - toolbar.dart +- main.dart + + diff --git a/docs/src/content/docs/installing.md b/docs/src/content/docs/installing.md index 338b94f..b49c2ee 100644 --- a/docs/src/content/docs/installing.md +++ b/docs/src/content/docs/installing.md @@ -3,8 +3,6 @@ title: Installing description: How to install Disco, either by command line or manually. --- -**NB:** Disco leverages Pub workspaces, a feature introduced in Dart SDK 3.6.0. This version of Dart is paired with Flutter 3.27.0, both released on December 11, 2024. - ### Install via command line or VSCode extension To add Disco to your project, open a terminal in your project’s root directory and run: @@ -19,11 +17,11 @@ You can also use the VSCode extension (>Dart: Add Dependency). Alternatively, you can add Disco manually by updating your `pubspec.yaml` file as follows: -```yaml +```yaml {4,8} name: # your app name environment: - sdk: ">=3.6.0 <4.0.0" + sdk: ^3.6.0 # Dart SDK version must be >=3.6.0 to support disco flutter: ">=3.27.0" dependencies: