摘要: 第一步:安装webView #webviewwebview_flutter: ^3.0.2 第二步:写入页面 SizedBox( width: Get.width, height: Get.height, child: Padding( padding: EdgeInsets.only(top: 2 阅读全文
posted @ 2023-10-16 11:00 慕雪琳鸢 阅读(135) 评论(0) 推荐(0) 编辑
摘要: WillPopScope组件 用WillPopScope包裹根页面组件 WillPopScope( onWillPop: _requestPop, child: pageContainer() ) 其中onWillPop绑定的函数就是系统返回事件触发后的处理函数 Future<bool> _requ 阅读全文
posted @ 2023-10-11 11:53 慕雪琳鸢 阅读(50) 评论(0) 推荐(0) 编辑
摘要: mainAxisSize 属性用于指定 Row 或 Column 主轴上的大小调整。当设置为 MainAxisSize.min 时,主轴会根据子组件的实际大小进行调整,尽可能地缩小主轴的尺寸。 这意味着,如果你在一个 Column 中将 mainAxisSize 设置为 MainAxisSize.m 阅读全文
posted @ 2023-09-21 17:06 慕雪琳鸢 阅读(347) 评论(0) 推荐(0) 编辑
摘要: // Copyright 2014 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the 阅读全文
posted @ 2023-09-21 16:41 慕雪琳鸢 阅读(137) 评论(0) 推荐(0) 编辑
摘要: flutter 使用Get.toName跳转到新页面,在新页面执行操作,比如说删除某个对象,需要返回页面 刷新列表页面 1.Get.toNamed(routes)!.then((value) => refresh); 其中的refresh 是执行刷新后的方法 2.Get.back(result: ' 阅读全文
posted @ 2023-05-23 15:28 慕雪琳鸢 阅读(114) 评论(0) 推荐(0) 编辑
摘要: 一、Row 水平展示多个子组件的控件构造函数 Row( MainAxisSize mainAxisSize /// main轴的大小 mainAxisSize :MainAxisSize.max 或者 mainAxisSize :MainAxisSize .min TextDirection tex 阅读全文
posted @ 2023-04-28 15:59 慕雪琳鸢 阅读(15) 评论(0) 推荐(0) 编辑
摘要: 将dart数组按照指定的长度分割,返回一个二维数组,实现list的split功能. 例如: a = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19] splitList(a, 6):[[0, 1, 2, 3, 阅读全文
posted @ 2023-04-07 15:38 慕雪琳鸢 阅读(325) 评论(0) 推荐(0) 编辑
摘要: 导航html代码 <!-- 顶部导航 --> <div class="header animate"> <div class="container" id="headerBox"> <div class="fl header_logo"> <img src="images/logo1.png" al 阅读全文
posted @ 2022-10-17 10:35 慕雪琳鸢 阅读(16) 评论(0) 推荐(0) 编辑
摘要: 在项目根目录下创建如下文件:(格式:.eve.xxx) 1、.eve.dev 或者 .eve.development 开发文件 2、.eve.pro 或者 .eve.production 生产环境文件 3、.eve.test 测试文件 如 env.dev 文件内容如下: 只支持 VUE_APP_ 开 阅读全文
posted @ 2022-08-15 11:38 慕雪琳鸢 阅读(2063) 评论(0) 推荐(0) 编辑
摘要: 遇到问题:vue3中使用defineProps中报错,飘红,如下图 解决方案:找到eslint.js文件,在env处添加代码 'vue/setup-compiler-macros': true,即可解决,如图 阅读全文
posted @ 2022-08-11 15:18 慕雪琳鸢 阅读(4116) 评论(0) 推荐(0) 编辑