Skip to content

Commit

Permalink
docs: update installing
Browse files Browse the repository at this point in the history
  • Loading branch information
nank1ro committed Jan 27, 2025
1 parent 497a778 commit cf00e9a
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 4 deletions.
20 changes: 20 additions & 0 deletions docs/src/content/docs/examples/solidart.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,25 @@ description: TODO
---

import { LinkCard } from '@astrojs/starlight/components';
import { FileTree } from '@astrojs/starlight/components';

<LinkCard title="Source code" description="Tap here to check the full source code of this example" href="https://github.com/our-creativity/disco/tree/main/examples/solidart" />

Let's look at the file structure:

<FileTree>

- controllers
- todos.dart
- domain
- todo.dart
- pages
- todos.dart
- widgets
- todo_item.dart
- todos_body.dart
- todos_list.dart
- toolbar.dart
- main.dart

</FileTree>
6 changes: 2 additions & 4 deletions docs/src/content/docs/installing.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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:
Expand Down

0 comments on commit cf00e9a

Please sign in to comment.