Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Flutter_meetup_tokyo__10.pdf

shogo.yamada
July 16, 2019
5.8k

 Flutter_meetup_tokyo__10.pdf

shogo.yamada

July 16, 2019
Tweet

Transcript

  1. Widget _drackableWidget(Widget widget, ValueNotifier<Matrix4> notifier) { return MatrixGestureDetector( onMatrixUpdate: (m,

    tm, sm, rm) { notifier.value = m; }, child: AnimatedBuilder( animation: notifier, builder: (ctx, child) { return Transform( transform: notifier.value, child: Stack( children: <Widget>[ Positioned.fill( child: Container( child: FittedBox( child: widget, ), ),