foundation_fluttify 0.4.13 foundation_fluttify: ^0.4.13 copied to clipboard
Foundation for `Fluttify`.
import 'package:decorated_flutter/decorated_flutter.dart';
import 'package:flutter/material.dart';
import 'package:foundation_fluttify/foundation_fluttify.dart';
void main() => runApp(MyApp());
class MyApp extends StatefulWidget {
@override
_MyAppState createState() => _MyAppState();
}
class _MyAppState extends State<MyApp> {
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
appBar: AppBar(title: const Text('Plugin example app')),
body: DecoratedColumn(
children: <Widget>[
RaisedButton(
onPressed: _testAddProperty,
child: Text('AddProperty'),
),
],
),
),
);
}
Future<void> _testAddProperty() async {
final target = await CGPoint.create(225, 556);
final target1 = await CGPoint.create(112, 556);
await target.addProperty(1, target1);
final result = await target.getProperty(1);
final target1Result = CGPoint()..refId = result.refId;
debugPrint('结果: ${await target1Result.x}');
}
}