全屏浏览
缩小浏览
回到页首

06 2020 档案

摘要:当我们想showSnackBar的时候,需要通过Scaffold.of(context)得到Scaffold。但是如果这个context用错的话,flutter就会抛出错误。下面我们通过代码仔细看一下。 issue code import 'package:flutter/material.dart 阅读全文
posted @ 2020-06-29 16:30 huhx 阅读(876) 评论(0) 推荐(0) 编辑
摘要:在Flutter中说起Button,floatingActionButton用的也非常的多。今天我们就来学习一下。 Simple Example import 'package:flutter/material.dart'; void main() => runApp(MyApp()); class 阅读全文
posted @ 2020-06-29 12:21 huhx 阅读(57) 评论(0) 推荐(0) 编辑
摘要:如果你想灵活控制Flex容器(Row, Column)中子组件中的间隔,可以考虑使用Spacer。下面以Row为例子,来为它的子组件添加间距。 ####use Spacer import 'package:flutter/material.dart'; void main() => runApp(M 阅读全文
posted @ 2020-06-29 11:07 huhx 阅读(99) 评论(0) 推荐(0) 编辑
摘要:记录一下在mac上面使用Typora和uPic来发表博客的过程,图床用的是阿里Oss。We all, whether we know it or not, are fighting to make the kind of a world that we should like. install uP 阅读全文
posted @ 2020-06-05 10:17 huhx 阅读(673) 评论(0) 推荐(0) 编辑
摘要:Dart is an open source, structured programming language for creating complex, browser-based web applications. first dart demo main() { var d = "Dart"; 阅读全文
posted @ 2020-06-03 22:45 huhx 阅读(565) 评论(0) 推荐(0) 编辑
摘要:应用中切换深色主题和暗色主题是比较常见的操作,今天我们就来学习一下Flutter中动态的切换主题。 Simple Theme import 'package:flutter/material.dart'; void main() => runApp(MyApp()); class MyApp ext 阅读全文
posted @ 2020-06-03 22:18 huhx 阅读(445) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示