2020年1月11日

摘要: 代码: import 'package:flutter/material.dart'; class MyhomePage extends StatefulWidget { MyhomePage({Key key}) : super(key: key); @override _MyhomePageSt 阅读全文
posted @ 2020-01-11 18:40 pp/ing 阅读(162) 评论(0) 推荐(0) 编辑
 
摘要: 代码: import 'package:flutter/material.dart'; class KeepAliveDemo extends StatefulWidget { @override _KeepAliveDemoState createState() => _KeepAliveDemo 阅读全文
posted @ 2020-01-11 17:32 pp/ing 阅读(185) 评论(0) 推荐(0) 编辑
 
摘要: 代码: import 'package:flutter/material.dart'; import 'dart:ui';//过滤器组件 class MaoBaoLi extends StatelessWidget { const MaoBaoLi({Key key}) : super(key: k 阅读全文
posted @ 2020-01-11 16:50 pp/ing 阅读(340) 评论(0) 推荐(0) 编辑
 
摘要: 代码: // //动画实现 // return FadeTransition( // opacity: Tween(begin: 0.0,end: 1.0)//类似于alpha 透明度效果 // .animate(CurvedAnimation( // parent: animation1,//默认 阅读全文
posted @ 2020-01-11 16:05 pp/ing 阅读(340) 评论(0) 推荐(0) 编辑
 
摘要: 重写过渡动画代码: import 'package:flutter/material.dart'; class CustomRoute extends PageRouteBuilder { final Widget widget; CustomRoute(this.widget)//重写构造方法 调 阅读全文
posted @ 2020-01-11 15:34 pp/ing 阅读(254) 评论(0) 推荐(0) 编辑