-
-
Notifications
You must be signed in to change notification settings - Fork 913
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into feat/adding-flame-console
- Loading branch information
Showing
101 changed files
with
1,316 additions
and
194 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,7 @@ environment: | |
sdk: ">=3.4.0 <4.0.0" | ||
|
||
dependencies: | ||
flame: ^1.20.0 | ||
flame: ^1.21.0 | ||
flutter: | ||
sdk: flutter | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ environment: | |
flutter: ">=3.22.0" | ||
|
||
dependencies: | ||
flame: ^1.20.0 | ||
flame: ^1.21.0 | ||
flutter: | ||
sdk: flutter | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,7 @@ environment: | |
sdk: ">=3.4.0 <4.0.0" | ||
|
||
dependencies: | ||
flame: ^1.20.0 | ||
flame: ^1.21.0 | ||
flutter: | ||
sdk: flutter | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,7 @@ environment: | |
flutter: ">=3.22.0" | ||
|
||
dependencies: | ||
flame: ^1.20.0 | ||
flame: ^1.21.0 | ||
flutter: | ||
sdk: flutter | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,7 +11,7 @@ environment: | |
|
||
dependencies: | ||
collection: ^1.16.0 | ||
flame: ^1.20.0 | ||
flame: ^1.21.0 | ||
flutter: | ||
sdk: flutter | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
45 changes: 45 additions & 0 deletions
45
examples/lib/stories/widgets/nine_tile_box_example_with_animation.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
import 'package:dashbook/dashbook.dart'; | ||
import 'package:flame/widgets.dart'; | ||
import 'package:flutter/material.dart'; | ||
|
||
var _opacity = 1.0; | ||
|
||
Widget nineTileBoxBuilderWithAnimation(DashbookContext ctx) { | ||
return StatefulBuilder( | ||
builder: (context, setState) { | ||
return Column( | ||
children: [ | ||
const SizedBox(height: 8), | ||
ElevatedButton( | ||
onPressed: () { | ||
setState(() { | ||
_opacity = _opacity == 1.0 ? 0.0 : 1.0; | ||
}); | ||
}, | ||
child: const Text('Toggle'), | ||
), | ||
const SizedBox(height: 8), | ||
AnimatedOpacity( | ||
duration: const Duration(seconds: 2), | ||
opacity: _opacity, | ||
child: NineTileBoxWidget.asset( | ||
width: 400, | ||
height: 400, | ||
path: 'nine-box.png', | ||
tileSize: 22, | ||
destTileSize: 50, | ||
child: const Center( | ||
child: Text( | ||
'Cool label', | ||
style: TextStyle( | ||
color: Color(0xFF000000), | ||
), | ||
), | ||
), | ||
), | ||
), | ||
], | ||
); | ||
}, | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.