摘要: import 'package:sensors/sensors.dart'; accelerometerEvents.listen((AccelerometerEvent event) { // Do something with the event. }); gyroscopeEvents.lis 阅读全文
posted @ 2019-06-07 19:42 braveheart007 阅读(505) 评论(0) 推荐(0) 编辑
摘要: import 'package:flutter/material.dart';void main() => runApp(MyApp());class MyApp extends StatelessWidget { @override Widget build(BuildContext contex 阅读全文
posted @ 2019-06-07 16:03 braveheart007 阅读(271) 评论(0) 推荐(0) 编辑
摘要: import 'package:flutter/material.dart';void main() => runApp(MyApp());class MyApp extends StatelessWidget { @override Widget build(BuildContext contex 阅读全文
posted @ 2019-06-07 14:15 braveheart007 阅读(359) 评论(0) 推荐(0) 编辑
摘要: switch(表达式){ case AnimationStatus.completed: 代码块; break; default: 代码块;} switch(animationController.status){ case AnimationStatus.completed: animationC 阅读全文
posted @ 2019-06-07 13:29 braveheart007 阅读(134) 评论(0) 推荐(0) 编辑