Skip to content

Commit

Permalink
Update creating-a-widget.md (#518)
Browse files Browse the repository at this point in the history
Adds `import 'package:flutter/widgets.dart';` to the button spec generation example for the generated `ButtonSpecTween` class.
  • Loading branch information
cabaucom376 authored Nov 19, 2024
1 parent 0c1b5cd commit b5398d5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions website/pages/docs/tutorials/creating-a-widget.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ A Spec, which is short for Specification, is the visual properties and attribute
This will look something like this:
```dart
import 'package:flutter/widgets.dart';
import 'package:mix/mix.dart';
import 'package:mix_annotations/mix_annotations.dart';

Expand Down

0 comments on commit b5398d5

Please sign in to comment.