摘要: 重要点 1、Column+Row中混合使用层数嵌套时,Text在里面要解决超长报错的问题,需要在每一个Row中使用Expanded才行 2、Text在Column中会自动换行,不需要单独处理。 3、在Column+Row混合使用时,如果中间穿插了Card,会影响Text的效果,任然会导致超长溢出报错 阅读全文
posted @ 2023-03-01 16:47 bg_不够 阅读(196) 评论(0) 推荐(0) 编辑
摘要: cmdline-tools component is missing & Android licenses status unknown 解决:1先 安装SDK Tools、2、运行命令flutter doctor --android-licenses,提示输入y/N的地方全部输入即可。 Visua 阅读全文
posted @ 2023-02-25 20:34 bg_不够 阅读(479) 评论(0) 推荐(0) 编辑
摘要: Widget _itemText(String txt, {Function()? onPress}) { //需要使用SizedBox限制TextButton高度 return SizedBox( height: 20, width: 44, child: TextButton( onPresse 阅读全文
posted @ 2023-02-20 15:28 bg_不够 阅读(404) 评论(0) 推荐(0) 编辑
摘要: ListView的physics是ScrollPhysics类:其常见子类有 BouncingScrollPhysics :允许滚动超出边界,但之后内容会反弹回来。 ClampingScrollPhysics : 防止滚动超出边界,夹住 。 AlwaysScrollableScrollPhysics 阅读全文
posted @ 2023-01-29 16:04 bg_不够 阅读(592) 评论(0) 推荐(0) 编辑
摘要: 布局特点 一、Container在不设置宽高的情况下,它的size取决于 如果设置了child,那么它会尽可能小,在没有设置constraints情况下,相当于child的大小。 如果没有设置child,那么它会尽可能大,在没有设置constraints情况下,相当于parent的大小。 二、Con 阅读全文
posted @ 2023-01-29 10:57 bg_不够 阅读(449) 评论(0) 推荐(0) 编辑
摘要: 需要在build里面添加 testInstrumentationRunner="androidx.test.runner.AndroidJUnitRunner" 阅读全文
posted @ 2022-12-27 14:14 bg_不够 阅读(115) 评论(0) 推荐(0) 编辑
摘要: One or more plugins require a higher Android SDK version. Fix this issue by adding the following to D:\xxx\android\app\build.gradle: android { compile 阅读全文
posted @ 2022-12-13 10:09 bg_不够 阅读(4755) 评论(0) 推荐(0) 编辑
摘要: /** * Created by tab on 2020/4/30. */ public class TabLabelsView extends ViewGroup implements View.OnClickListener { private Context mContext; private 阅读全文
posted @ 2022-05-27 21:58 bg_不够 阅读(128) 评论(0) 推荐(0) 编辑
摘要: /** * 倒计时类 * * @author tab */ public class TimerDownTab extends CountDownTimer { private TimerDownListener listener; public interface TimerDownListene 阅读全文
posted @ 2022-05-27 21:51 bg_不够 阅读(99) 评论(0) 推荐(0) 编辑
摘要: /** * Created by tab on 2017/10/10 */ public class Base64Encoder extends FilterOutputStream { private static final char[] chars = {'A', 'B', 'C', 'D', 阅读全文
posted @ 2022-05-27 21:50 bg_不够 阅读(17) 评论(0) 推荐(0) 编辑