Flutter
文章平均质量分 58
Flutter
coooliang
我是好人!
展开
-
【Flutter】使用DefaultTabController创建TabBar
【代码】【Flutter】使用DefaultTabController创建TabBar。原创 2024-06-19 09:32:06 · 232 阅读 · 0 评论 -
Flutter命令行全局配置(command not found: flutter)
command not found: flutter原创 2022-07-06 09:58:57 · 959 阅读 · 0 评论 -
Flutter桌面开发之HelloWorld
flutter channel masterflutter upgrade --forceflutter doctor flutter config --enable-linux-desktop flutter config --enable-macos-desktopflutter config --enable-windows-desktopflutter devicesgit clone https://github.com/google/flutter-desktop-embeddi原创 2021-12-20 10:16:03 · 1064 阅读 · 0 评论 -
【Flutter】Banner
pubspec.yaml:flutter_swiper_null_safety: ^1.0.2banner.dartimport 'package:flutter/material.dart';import 'package:flutter_swiper_null_safety/flutter_swiper_null_safety.dart';class BannerView extends StatefulWidget { List<Image> imgs = []; @原创 2021-07-21 15:54:16 · 174 阅读 · 0 评论 -
【Flutter】自定义TabBarController
tabIcon_data.dart// ignore_for_file: file_namesclass TabIconData { TabIconData({ this.imagePath = '', this.index = 0, this.selectedImagePath = '', this.centerImage = '', this.title = '', this.isSelected = false, }); String原创 2021-07-21 15:45:58 · 802 阅读 · 1 评论 -
【Flutter】Provider之HelloWorld
pubspec.yaml:provider: ^5.0.0main.dart:class MyApp extends StatelessWidget { const MyApp({Key? key}) : super(key: key); // This widget is the root of your application. @override Widget build(BuildContext context) { return MultiProvider(原创 2021-07-16 10:26:59 · 175 阅读 · 0 评论 -
【Flutter】JSON转换
pubspec.yaml中添加json_annotation,build_runner,json_serializable :dependencies: flutter: sdk: flutter cupertino_icons: ^1.0.2 json_annotation: ^4.0.1 dev_dependencies: flutter_test: sdk: flutter flutter_lints: ^1.0.0 b.原创 2021-07-01 16:35:33 · 457 阅读 · 0 评论 -
Flutter之HelloWorld
1.下载Fluttergit clone -b dev https://github.com/flutter/flutter.gitexport PATH="$PWD/flutter/bin:$PATH"cd ./flutterflutter doctor2. .bash_profile中添加pathexport PATH=/Users/lion/flutter/bin:$PATHexport PUB_HOSTED_URL=https://pub.flutter-io.cnexport F原创 2021-06-28 17:19:38 · 449 阅读 · 2 评论