Skip to content

Commit 57daf6f

Browse files
blueneogeogitbook-bot
authored andcommitted
GitBook: [master] 7 pages modified
1 parent 311ff30 commit 57daf6f

7 files changed

+21
-21
lines changed

SUMMARY.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
* [Writing Reactive code](guide/writing-reactive-code.md)
2323
* [Styling per platform](guide/untitled.md)
2424

25-
## Shortcuts Reference
25+
## Shortcuts Reference <a id="reference"></a>
2626

2727
* [Shortcut tags](reference/tag-shortcuts.md)
2828
* [Shortcut properties](reference/css-properties.md)

get-started/installation.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -27,27 +27,27 @@ To test your installation worked, type the flutter-view command in your Terminal
2727
2828
If you got the above text, your installation was succesfull.
2929

30-
## Installing flutter-view-tools
30+
## Installing flutter-view-widgets
3131

3232
Flutter-view has an optional Dart tooling library. It allows you to use the reactive, assign and life-cycle tags.
3333

3434
### Adding the dependency
3535

3636
To install it, add the following dependency to your project **pubspec.yaml** file:
3737

38-
> `flutter_view_tools: ^1.0.3`
38+
> `flutter_view_widgets: ^1.0.6`
3939
4040
Then perform a flutter packages get to pull in the new dependency.
4141

42-
_Note: for the latest version, check the_ [_flutter-view-tools pub page_](https://pub.dartlang.org/packages/flutter_view_tools)_._
42+
_Note: for the latest version, check the_ [_flutter-view-widgets pub page_](https://pub.dartlang.org/packages/flutter_view_tools)_._
4343

4444
### Importing the tools
4545

4646
To import the library in Dart:
4747

48-
`import 'package:flutter_view_tools/flutter_view_tools.dart'`
48+
`import 'package:flutter_view_widgets/flutter_view_widgets.dart'`
4949

5050
To import the library in a Pug file:
5151

52-
`import(package='flutter_view_tools/flutter_view_tools.dart')`
52+
`import(package='flutter_view_widgets/flutter_view_widgets.dart')`
5353

guide/configuring-flutter-view.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,14 @@ imports: [
3939
]
4040
```
4141

42-
For example, to add the [**flutter\_view\_tools**](../get-started/installation.md#installing-flutter-view-tools) to each file:
42+
For example, to add the[ **flutter\_view\_widgets**](https://pub.dev/packages/flutter_view_widgets) to each file:
4343

4444
{% code-tabs %}
4545
{% code-tabs-item title="flutter-view.json" %}
4646
```javascript
4747
{
4848
imports: [
49-
"package:flutter_view_tools/flutter_view_tools.dart"
49+
"package:flutter_view_widgets/flutter_view_widgets.dart"
5050
]
5151
}
5252
```

guide/creating-a-new-view.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@ To import additional packages in a Pug or HTML file, use the import tag with the
2222
{% tabs %}
2323
{% tab title="Pug" %}
2424
```css
25-
import(package='flutter_view_tools/flutter_view_tools.dart')
25+
import(package='flutter_view_widgets/flutter_view_widgets.dart')
2626
```
2727
{% endtab %}
2828

2929
{% tab title="HTML" %}
3030
```markup
31-
<import package='flutter_view_tools/flutter_view_tools.dart'/>
31+
<import package='flutter_view_widgets/flutter_view_widgets.dart'/>
3232
```
3333
{% endtab %}
3434
{% endtabs %}

guide/untitled.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ First tip is, use the [**platform\_widgets library**](https://pub.dartlang.org/p
1111
```javascript
1212
{
1313
"imports": [
14-
"package:flutter_view_tools/flutter_view_tools.dart",
14+
"package:flutter_view_widgets/flutter_view_widgets.dart",
1515
"package:flutter_platform_widgets/flutter_platform_widgets.dart"
1616
]
1717
}

guide/writing-reactive-code.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Our app will look like this:
1717

1818
You can find the[ full app source code](https://github.com/flutter-view/examples/tree/master/todolist) with some extra features added such as deleting and persistence in [the examples](../get-started/examples.md#todolist).
1919

20-
_Note: this approach requires you add the_ [_**flutter\_view\_tools**_](https://pub.dartlang.org/packages/flutter_view_tools) _dependency to your project's **pubspec.yaml** file. It is also recommended to use VS Code with the_ [_**flutter-view extensions**_](../get-started/vs-code-support.md)_._
20+
_Note: this approach requires you add the_ [_**flutter\_view\_widgets**_](https://pub.dev/packages/flutter_view_widgets) _dependency to your project's **pubspec.yaml** file. It is also recommended to use VS Code with the_ [_**flutter-view extensions**_](../get-started/vs-code-support.md)_._
2121

2222
## The basic structure
2323

@@ -46,7 +46,7 @@ Our task has a name and can be done:
4646
{% code-tabs-item title="lib/model/task.dart" %}
4747
```dart
4848
import 'package:meta/meta.dart';
49-
import 'package:flutter_view_tools/flutter_view_tools.dart';
49+
import 'package:flutter_view_widgets/flutter_view_widgets.dart';
5050
5151
class Task extends Model {
5252
@@ -64,7 +64,7 @@ Our application has a model that contains the list of tasks we want to keep:
6464
{% code-tabs %}
6565
{% code-tabs-item title="lib/model/appmodel.dart" %}
6666
```dart
67-
import 'package:flutter_view_tools/flutter_view_tools.dart';
67+
import 'package:flutter_view_widgets/flutter_view_widgets.dart';
6868
import 'package:todolist/model/task.dart';
6969
7070
class AppModel extends Model {
@@ -95,7 +95,7 @@ Our view model starts out simple, for now it only needs a reference to the app,
9595
{% code-tabs-item title="lib/pages/taskspage/taskspage-model.dart" %}
9696
```dart
9797
import 'package:meta/meta.dart';
98-
import 'package:flutter_view_tools/flutter_view_tools.dart';
98+
import 'package:flutter_view_widgets/flutter_view_widgets.dart';
9999
import 'package:todolist/model/app-model.dart';
100100
101101
class TasksPageModel extends Model {
@@ -112,7 +112,7 @@ Our view is a page scaffold with a list of tasks and a floating add button on th
112112
{% code-tabs %}
113113
{% code-tabs-item title="lib/pages/taskspage/taskspage.pug" %}
114114
```css
115-
import(package='flutter_view_tools/flutter_view_tools.dart')
115+
import(package='flutter_view_widgets/flutter_view_widgets.dart')
116116
import(package='todolist/model/app-model.dart')
117117
import(package='todolist/model/task.dart')
118118
import(file='taskspage-model.dart')
@@ -445,7 +445,7 @@ At line 4 we have added a computed [**text-decoration**](../reference/css-proper
445445
{% code-tabs-item title="lib/pages/taskspage/taskspage-model.dart" %}
446446
```dart
447447
import 'package:meta/meta.dart';
448-
import 'package:flutter_view_tools/flutter_view_tools.dart';
448+
import 'package:flutter_view_widgets/flutter_view_widgets.dart';
449449
import 'package:todolist/model/app-model.dart';
450450
451451
class TasksPageModel extends Model {
@@ -497,7 +497,7 @@ The **view-model** needs to store the scrollController, initialize it and dispos
497497
```dart
498498
import 'package:meta/meta.dart';
499499
import 'package:flutter/widgets.dart'
500-
import 'package:flutter_view_tools/flutter_view_tools.dart';
500+
import 'package:flutter_view_widgets/flutter_view_widgets.dart';
501501
import 'package:todolist/model/app-model.dart';
502502
503503
class TasksPageModel extends Model {

reference/tag-shortcuts.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ In the above example, if you leave out the builder, you will get an error becaus
8787

8888
## assign
8989

90-
_Note: Requires the_ [_flutter-view-tools_](https://pub.dartlang.org/packages/flutter_view_tools) _Dart library._
90+
_Note: Requires the_ [_flutter-view-widgets_](https://pub.dev/packages/flutter_view_widgets) _Dart library._
9191

9292
Assigns a the value of an expression to a new variable.
9393

@@ -143,7 +143,7 @@ UserEntry({ @required user }) {
143143

144144
## lifecycle
145145

146-
_Note: Requires the_ [_flutter-view-tools_](https://pub.dartlang.org/packages/flutter_view_tools) _Dart library._
146+
_Note: Requires the_ [_flutter-view-widgets_](https://pub.dev/packages/flutter_view_widgets) _Dart library._
147147

148148
Widget that lets you listen to the lifecycle of the `BuildContext` it is part of.
149149

@@ -199,7 +199,7 @@ For more information, see [monitoring the state lifecycle](../guide/writing-reac
199199

200200
## reactive
201201

202-
_Note: Requires the_ [_flutter-view-tools_](https://pub.dartlang.org/packages/flutter_view_tools) _Dart library._
202+
_Note: Requires the_ [_flutter-view-widgets_](https://pub.dev/packages/flutter_view_widgets) _Dart library._
203203

204204
Rerenders its children if the Listenable it watches updates.
205205

0 commit comments

Comments
 (0)