摘要: Future<bool> loopRequest({final loopCount = 5}) async { int count = 0; bool b = false; await Future.doWhile(() async { ++count; try { bool result = aw 阅读全文
posted @ 2025-07-02 16:20 呢哇哦比较 阅读(9) 评论(0) 推荐(0)
摘要: void main() async { CancelableTask<String> cancelableTask = CancelableTask(); cancelableTask.startTask(operater()).then((value) { print("yyyyy:$value" 阅读全文
posted @ 2025-07-02 15:57 呢哇哦比较 阅读(20) 评论(0) 推荐(0)
摘要: class NBLoading{ static OverlayEntry? _entry; static Widget? _showWidget; static void show(BuildContext context,Widget widget){ _showWidget = widget; 阅读全文
posted @ 2025-07-01 17:57 呢哇哦比较 阅读(8) 评论(0) 推荐(0)
摘要: Container( width: 100, height: 100, decoration: BoxDecoration( ///内部填充色 color: Colors.green, ///直接设置为圆形 // shape: BoxShape.circle, ///设置圆角,值为50可变为圆形 b 阅读全文
posted @ 2025-07-01 16:29 呢哇哦比较 阅读(47) 评论(0) 推荐(0)
摘要: Container( width: 300, padding: const EdgeInsets.all(20.0), child: Column(children: [ TextField( decoration: InputDecoration( filled: true, // 启用背景填充 阅读全文
posted @ 2025-07-01 15:58 呢哇哦比较 阅读(19) 评论(0) 推荐(0)
摘要: flutter和dart有时候拉取插件拉不下来,国外可能被墙了,可以使用镜像如下 第一种方式.配置环境变量 export PUB_HOSTED_URL=https://pub.flutter-io.cn; export FLUTTER_STORAGE_BASE_URL=https://storage 阅读全文
posted @ 2025-06-24 14:11 呢哇哦比较 阅读(30) 评论(0) 推荐(0)
摘要: import 'dart:async'; import 'dart:io'; import 'package:flutter/material.dart'; import 'package:flutter_blue_plus/flutter_blue_plus.dart'; logDog(Strin 阅读全文
posted @ 2025-05-26 09:44 呢哇哦比较 阅读(367) 评论(0) 推荐(0)
摘要: 想要使用自带的分割线部件发现在设置Height的时候直接让分割线往下偏移了,本来还以为是设置他的高度呢,真尼玛扯淡 //想要自己去设置分割线的高度必须这两个同时设置才行Divider( thickness: 100, height: 100,), 阅读全文
posted @ 2025-04-10 15:17 呢哇哦比较 阅读(25) 评论(0) 推荐(0)
摘要: 插件地址:https://pub.dev/packages/showcaseview 依赖 showcaseview: ^4.0.1 有几点比较import 'dart:developer';import 'detailscreen.dart'; import 'package:flutter/ma 阅读全文
posted @ 2025-04-10 14:16 呢哇哦比较 阅读(119) 评论(0) 推荐(0)
摘要: 当在Flutter项目中运行Android项目时出现如下错误 BUG! exception in phase 'semantic analysis' in source unit '/Users/veepai005/development/flutter/packages/flutter_tools 阅读全文
posted @ 2025-03-12 15:59 呢哇哦比较 阅读(667) 评论(0) 推荐(1)