36 Commits

Author SHA1 Message Date
ccee9a466b Move files to src and comply with the dart package layout convention (#621)
* 👌 Use `Offset` type directly in `JoystickAction.update` calculations (#631)

* Move files to src and comply with the dart package layout convention

* Fixing widgets example

Co-authored-by: Serge Matveenko <lig@countzero.co>
Co-authored-by: Erick Zanardo <erickzanardoo@gmail.com>
2021-01-20 09:05:43 -03:00
16eaef3bb1 🏷 Backport some code improvements from the null-safety branch (#603) 2021-01-08 23:25:29 -03:00
692213d5a4 Properly propagate onMount and onRemove to children (#579)
* Fix rendering of children

* Game loop handles other restore

* Properly propagate onMount and onRemove to children

* Use BaseGame on gestures to minimize confusion

* Fix linting

* All children don't need preparation

* Add composability example

* gameRef might not be defined

* Add mustCallSuper

* isMounted on game

* Remove unused gameRef argument

* Made isMounted only modifiable by the component

* Move dartdoc to public isMounted

* Fix formatting
2020-12-21 12:42:45 +01:00
bd8257402b Rename Dragable -> Draggable (#575)
* Rename Dragable -> Draggable

* Hide ambigious class

* Add changelog entry

* Update docs
2020-12-19 01:10:17 +01:00
2291002066 Update docs to take margin/padding into account 2020-12-09 10:22:36 +00:00
598436a3cb isDragged -> isDragging 2020-12-09 10:22:36 +00:00
463c30c374 Support dragable components 2020-12-09 10:22:36 +00:00
2f2ab1341e game widget (#533) 2020-12-09 10:10:12 +00:00
98ad12d269 Use relative imports 2020-12-09 10:10:12 +00:00
46554507a7 Tapables need to be handled in reversed priority order 2020-12-09 10:10:11 +00:00
8665172ed9 Take angle into account for taps 2020-12-09 10:10:11 +00:00
d09d2bd449 Add TextBoxConfig options and fix TextBoxComponent bugs (#534)
* Add TextBoxConfig options and fix TextBxoComponent bugs

* Add changelog entry

* Fix snackbar deprecation

* All examples to have publish to none

* One argument per line

* No explicit types for local variables

* Cache the width

* Fix formatting
2020-12-09 10:07:35 +00:00
37ad12e9a0 . 2020-10-14 22:41:51 -04:00
0f9fc2c60e Fixed with regards to the comments 2020-09-30 20:49:19 +02:00
f97f20ab73 Vector2 for position and size on PositionComponent 2020-09-30 19:12:52 +02:00
9d9d94c1b3 Fix examples dart version to allow extensions 2020-09-27 15:28:44 -04:00
3c48aa345d Fixes 2020-09-27 15:15:58 -04:00
a6023f4cfe Fixes 2020-09-27 15:10:42 -04:00
63ad21d421 Fix usages 2020-09-27 14:52:05 -04:00
bb30058642 Merge branch 'develop' into v1.0.0 2020-09-27 15:22:45 -03:00
25b0f403f7 Adding ScrollDetector 2020-09-14 22:38:25 +02:00
15d9210b72 More lints fixes 2020-09-12 11:54:53 -03:00
a35c2e397c Updating changelog and fixing format 2020-09-12 11:50:30 -03:00
3e4143a7ac Updating with PR suggestions 2020-09-12 11:47:32 -03:00
a4613f7be3 linting 2020-09-10 22:39:11 -03:00
0d8c0b7b6c Adding HoverDetector 2020-09-10 22:33:51 -03:00
01b3863353 address comments 2020-08-18 23:39:40 -04:00
1da1d4bb98 fixes 2020-08-08 19:54:12 -04:00
6f836ee36c Extract each component to their own file 2020-08-03 13:08:41 -04:00
b46ebb1378 Linting 2020-05-20 19:57:48 -03:00
624a4de294 Refactoring gestures to fix conflicts 2020-05-20 19:55:36 -03:00
df1f88a6e0 Reverting doc rename 2020-05-18 15:13:22 -03:00
9293a6e4a9 Renamed doc to docs and minor language fixes 2020-05-10 16:51:49 +02:00
dea71c98f3 Changing docs to reflect the refactoring 2019-11-11 09:24:13 -03:00
a2336b926d Refactoring new API to use mixins 2019-11-11 09:24:13 -03:00
6f44e0514b Fixing gestures conflicts and adding a gestures example 2019-11-11 09:24:13 -03:00