Slide 11
Slide 11 text
example/lib/main.dart (使う⼈)
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
appBar: AppBar(
title: const Text('dart:ffi plugin example app'
),
),
body: Center(
child: Text('4+5=${nativeAdd(4, 5)}'),
),
),
);
}
}