forked from 2d-inc/Nima-Flutter
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Making sure actor widget is disposed of properly.
- Loading branch information
1 parent
85493fe
commit 1d2146b
Showing
4 changed files
with
86 additions
and
21 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
## [1.0.3] - 2019-04-09 09:50:41 | ||
|
||
* Making sure the Nima Actor widget is disposed of properly when the leaf render widet is unmounted or the render box is detached. | ||
|
||
## [1.0.0] - 5/5/2018 | ||
|
||
* Initial release with an example NimaActor widget that implements a LeafRenderObjectWidget that can render a Nima actor. Alignment is done based on the setup axis aligned bounding box. |
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,29 @@ | ||
// This is a basic Flutter widget test. | ||
// | ||
// To perform an interaction with a widget in your test, use the WidgetTester | ||
// utility that Flutter provides. For example, you can send tap and scroll | ||
// gestures. You can also use WidgetTester to find child widgets in the widget | ||
// tree, read text, and verify that the values of widget properties are correct. | ||
|
||
import 'package:example/main.dart'; | ||
//import 'package:flutter/material.dart'; | ||
import 'package:flutter_test/flutter_test.dart'; | ||
|
||
|
||
void main() { | ||
testWidgets('Start the game', (WidgetTester tester) async { | ||
// Build our app and trigger a frame. | ||
await tester.pumpWidget(MyApp()); | ||
|
||
// Find the start text | ||
expect(find.text('Attack'), findsOneWidget); | ||
|
||
// // Start the game. | ||
// expect(find.byType(FlatButton), findsNWidgets(2)); | ||
// await tester.tap(find.text('Start')); | ||
// await tester.pumpAndSettle(); | ||
|
||
// // We made it to the game screen. | ||
// expect(find.text('Tasks'), findsOneWidget); | ||
}); | ||
} |
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
name: nima | ||
description: Nima runtime for flutter. | ||
version: 1.0.2 | ||
version: 1.0.3 | ||
author: "2Dimensions Team <[email protected]>" | ||
homepage: https://github.com/2d-inc/Nima-Flutter | ||
environment: | ||
|