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

Flutterでアプリを作る?

 Flutterでアプリを作る?

こばやしただあき

August 28, 2019
Tweet

More Decks by こばやしただあき

Other Decks in Programming

Transcript

  1. ωετ͕ਂ͘ͳΔ // Flutter class CustomCard extends StatelessWidget { CustomCard({@required this.index,

    @required this.onPress}); final index; final Function onPress; @override Widget build(BuildContext context) { return Card( child: Column( children: <Widget>[ Text('Card $index'), FlatButton( child: const Text('Press'), onPressed: this.onPress, ), ], ) ); } } ... // Usage CustomCard( index: index, onPress: () { print('Card $index'); }, ) ..