摘要: /// 封装一个连续按两次返回键退出页面的组件 /// child 子组件 /// delay 两次返回间隔时间 class UseWillPopScope extends StatefulWidget { final Widget child; final Duration delay; cons 阅读全文
posted @ 2021-08-06 12:51 拖延症的理想主义者 阅读(340) 评论(0) 推荐(0) 编辑
摘要: import 'package:flutter/material.dart'; /// 一个按钮和一根线 class ButtonAndLine extends StatelessWidget { const ButtonAndLine({Key? key}) : super(key: key); 阅读全文
posted @ 2021-08-06 00:48 拖延症的理想主义者 阅读(174) 评论(0) 推荐(0) 编辑