摘要:
return Scaffold( appBar: AppBar( elevation: 0.0, title: new Text("登陆"), ), resizeToAvoidBottomPadding: false, //输入框抵住键盘); 阅读全文
摘要:
https://www.jianshu.com/p/d68278d19f79 阅读全文
摘要:
https://medium.com/@diegoveloper/flutter-widget-size-and-position-b0a9ffed9407 I have read many questions about how we can obtain the dimensions or po 阅读全文
摘要:
并行动画 当多个动画定义同时指向某个组件,并使用动画控制器启动时,就产生了并行动画(Parallel Animation)。例如我们可以让一个组件: 移动的同时改变大小 旋转的同时边界颜色闪烁 圆形图片模糊的同时形状越来越方 总之,掌握了动画原理以后我们知道,只要能将一个动画抽象值与一个组件的某个外 阅读全文
摘要:
import 'package:flutter/material.dart'; import 'dart:io'; import 'dart:async'; main() => runApp(MyApp()); class MyApp extends StatelessWidget { @override Widget build(BuildContext context) { ... 阅读全文
摘要:
class BuilderPage extends StatefulWidget { @override State createState() { // TODO: implement createState return BuilderPageState(); } } class BuilderPageState extends State with Sin... 阅读全文
摘要:
AnimatedCrossFade让俩个子widget 交替淡入淡出。 AnimatedBuilder构建动画最常用的控件。AnimatedBuilder 由 animation,child,builder 三个参数。 当创建一个AnimationController时,需要传递一个vsync参数, 阅读全文
摘要:
Flutter AnimatedBuilder 创建动画的widget Key key, @required Listenable animation, @required this.builder, this.child, animation:Animationcontroller //动画 ch 阅读全文