上一页 1 ··· 49 50 51 52 53 54 55 56 57 ··· 179 下一页
摘要: 一,报错信息: Exception caught by rendering library The following assertion was thrown during performResize(): Vertical viewport was given unbounded height. 阅读全文
posted @ 2025-04-12 08:50 刘宏缔的架构森林 阅读(120) 评论(0) 推荐(0)
摘要: 一,下载第三方库 地址: https://pub.dev/packages/carousel_slider 编辑pubspec.yaml dependencies: flutter: sdk: flutter carousel_slider: ^5.0.0 然后点击pub get下载 二,代码: i 阅读全文
posted @ 2025-04-12 08:48 刘宏缔的架构森林 阅读(227) 评论(0) 推荐(0)
摘要: 一,代码: 添加一行 debugShowCheckedModeBanner: false, //隐藏debug的角标 即可 例子: class MyApp extends StatelessWidget { // This widget is the root of your application 阅读全文
posted @ 2025-04-12 08:48 刘宏缔的架构森林 阅读(248) 评论(0) 推荐(0)
摘要: 一,代码: import 'package:flutter/material.dart'; import '../tabpages/MyHomePage.dart'; import '../tabpages/ProfilePage.dart'; import '../tabpages/Webview 阅读全文
posted @ 2025-04-12 08:47 刘宏缔的架构森林 阅读(156) 评论(0) 推荐(0)
摘要: 一,代码: import 'package:flutter/material.dart'; import '../tabpages/MyHomePage.dart'; import '../tabpages/ProfilePage.dart'; import '../tabpages/Webview 阅读全文
posted @ 2025-04-12 08:44 刘宏缔的架构森林 阅读(168) 评论(0) 推荐(0)
摘要: 一,创建目录并复制图片到目录下 如图: 二,编辑pubspec.yaml,把图片路径写入 三,代码中调用 body: Center( child:Container( child: Image.asset( "images/b.png", repeat: ImageRepeat.noRepeat, 阅读全文
posted @ 2025-04-12 08:42 刘宏缔的架构森林 阅读(35) 评论(0) 推荐(0)
摘要: 一,代码: 1,main.dart import 'package:flutter/material.dart'; import 'package:tangpoem/common/SlideRoute.dart'; import 'pages/CopyPage.dart'; import 'page 阅读全文
posted @ 2025-04-12 08:42 刘宏缔的架构森林 阅读(41) 评论(0) 推荐(0)
摘要: 一,代码: 1,定义三个常用动画的类 FadeRoute.dart import 'package:flutter/material.dart'; class FadeRoute extends PageRouteBuilder { final Widget page; FadeRoute(this 阅读全文
posted @ 2025-04-04 13:23 刘宏缔的架构森林 阅读(129) 评论(0) 推荐(0)
摘要: 一,代码: .env APP_PORT = 8788 config/process.php return [ 'webman' => [ 'handler' => Http::class, //'listen' => 'http://0.0.0.0:8787', 'listen' => 'http: 阅读全文
posted @ 2025-04-04 13:23 刘宏缔的架构森林 阅读(58) 评论(0) 推荐(0)
摘要: 一,配置build.gradle.kts,使支持apk文件重命名 说明:build.gradle.kts 是 Kotlin Build Scripts 的文件扩展名,它使用 Kotlin 语言来编写 Gradle 构建脚本,而不是传统的 Groovy。Kotlin 被引入 Gradle 主流是因为它 阅读全文
posted @ 2025-04-04 13:17 刘宏缔的架构森林 阅读(219) 评论(0) 推荐(0)
上一页 1 ··· 49 50 51 52 53 54 55 56 57 ··· 179 下一页