上一页 1 ··· 56 57 58 59 60 61 62 63 64 ··· 186 下一页
摘要: 一,下载第三方库 地址: 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 刘宏缔的架构森林 阅读(288) 评论(0) 推荐(0)
摘要: 一,代码: 添加一行 debugShowCheckedModeBanner: false, //隐藏debug的角标 即可 例子: class MyApp extends StatelessWidget { // This widget is the root of your application 阅读全文
posted @ 2025-04-12 08:48 刘宏缔的架构森林 阅读(290) 评论(0) 推荐(0)
摘要: 一,代码: import 'package:flutter/material.dart'; import '../tabpages/MyHomePage.dart'; import '../tabpages/ProfilePage.dart'; import '../tabpages/Webview 阅读全文
posted @ 2025-04-12 08:47 刘宏缔的架构森林 阅读(193) 评论(0) 推荐(0)
摘要: 一,代码: import 'package:flutter/material.dart'; import '../tabpages/MyHomePage.dart'; import '../tabpages/ProfilePage.dart'; import '../tabpages/Webview 阅读全文
posted @ 2025-04-12 08:44 刘宏缔的架构森林 阅读(189) 评论(0) 推荐(0)
摘要: 一,创建目录并复制图片到目录下 如图: 二,编辑pubspec.yaml,把图片路径写入 三,代码中调用 body: Center( child:Container( child: Image.asset( "images/b.png", repeat: ImageRepeat.noRepeat, 阅读全文
posted @ 2025-04-12 08:42 刘宏缔的架构森林 阅读(44) 评论(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 刘宏缔的架构森林 阅读(51) 评论(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 刘宏缔的架构森林 阅读(161) 评论(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 刘宏缔的架构森林 阅读(88) 评论(0) 推荐(0)
摘要: 一,配置build.gradle.kts,使支持apk文件重命名 说明:build.gradle.kts 是 Kotlin Build Scripts 的文件扩展名,它使用 Kotlin 语言来编写 Gradle 构建脚本,而不是传统的 Groovy。Kotlin 被引入 Gradle 主流是因为它 阅读全文
posted @ 2025-04-04 13:17 刘宏缔的架构森林 阅读(272) 评论(0) 推荐(0)
摘要: 一,从android studio打包 二,从命令行打包: 只打包 liuhongdi@liuhongdideMBP demo3 % flutter build apk Running Gradle task 'assembleRelease'... 8.9s ✓ Built build/app/o 阅读全文
posted @ 2025-04-04 13:17 刘宏缔的架构森林 阅读(768) 评论(0) 推荐(0)
上一页 1 ··· 56 57 58 59 60 61 62 63 64 ··· 186 下一页