![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
flutter
anymyna
这个作者很懒,什么都没留下…
展开
-
Flutter ijkplayer播放器FijkPlayer浅析
github:https://github.com/befovy/fijkplayerdemo:https://github.com/befovy/fijkplayer/tree/master/example主要内容1、视频播放2、texture设置3、flutter页面打开flutter页面4、 native打开native页面5、 patch模块6、代码风格1、视频播放页面状态初始...原创 2020-07-24 23:26:40 · 7063 阅读 · 0 评论 -
flutter charts_flutter图表使用
https://github.com/google/charts效果:线性图:// Copyright 2018 the Charts project authors. Please see the AUTHORS file// for details.//// Licensed under the Apache License, Version 2.0 (the "License");// you may not use this file except in compliance w原创 2020-07-18 23:36:02 · 2861 阅读 · 0 评论 -
Flutter-Native混合解决方案FlutterBoost浅析
github:https://github.com/marcojakob/dart-event-busdemo:效果:步骤:1、 初始化2、 用法算法:参考:simple_page_widgets.dart ///后面的参数会在native的IPlatform.startActivity方法回调中拼接到url的query部分。 ...原创 2020-03-07 19:35:03 · 4864 阅读 · 0 评论 -
Flutter 性能检测工具 Observatory使用指南
1、打开ObservatoryAndroid Studio 命令行Terminal中运行flutter run,应用启动成功后,命令行中会输出一个 url,把 url copy 到浏览器即可。2、VM screenWhen you first connect to Observatory, it opens the VM screen, which reflects information...原创 2020-03-01 21:26:36 · 13125 阅读 · 0 评论 -
Flutter 状态管理provider 浅析
github:https://github.com/rrousselGit/providerdemo:https://github.com/rrousselGit/provider/tree/master/example步骤:1、 初始化在pubspec.yaml中添加Provide的依赖。2、 创建Modelclass Counter with ChangeNotifier {...原创 2020-02-29 16:27:44 · 623 阅读 · 0 评论 -
Flutter 状态管理flutter_redux 浅析
github:https://github.com/brianegan/flutter_reduxdemo:countergithub_search效果:github_search使用步骤 :代码见counter1、 增加依赖flutter_redux2、 定义action// One simple action: Incrementenum Actions { Inc...原创 2020-02-28 20:40:35 · 549 阅读 · 0 评论 -
Flutter 状态管理Scoped Model浅析
github:https://github.com/brianegan/scoped_model示例demo:https://github.com/brianegan/scoped_model/tree/master/example步骤:1、 初始化在pubspec添加scoped_model依赖2、新建自定义Model// Note: It must extend from M...原创 2020-02-27 23:18:09 · 216 阅读 · 0 评论 -
Flutter注解路由annotation_route使用
github:https://github.com/alibaba-flutter/annotation_routedemo:https://github.com/anymyna/flutter-examples/annotation_route_demo效果:步骤:1、 增加依赖 annotation_route和build_runnerdependencies: flut...原创 2020-02-23 21:15:27 · 1628 阅读 · 0 评论 -
Flutter路由fluro使用和代码浅析
https://github.com/theyakka/fluro特点:1、路由导航实现简单2、路由函数处理3、匹配通配符参数4、内置多种过渡动画,支持自定义过渡动画demo:https://github.com/anymyna/flutter-examples/work_from_home使用步骤:1、 添加依赖dependencies: flutter: fluro...原创 2020-02-20 12:03:30 · 1639 阅读 · 0 评论 -
Flutter Bloc的使用演示demo
BLoC 全称是Business Logic Component,业务逻辑组件,简称 Bloc。主要内容1、Stream实现Bloc2、RxDart实现Bloc3、Bloc封装展示4、Bloc开源组件1、Stream实现Bloc1.Bloc 的实现counter_bloc 类import 'dart:async';class CounterBLoC{ //记录按钮点击的次数...原创 2020-02-19 19:51:22 · 1413 阅读 · 0 评论 -
Flutter消息总线EventBus
github:https://github.com/marcojakob/dart-event-busdemo:效果:步骤:1、 初始化dependencies: event_bus: ^1.1.12、 用法import 'package:event_bus/event_bus.dart';3、创建EventBus定义了ThemeColorEvent通知修改主题颜色的...原创 2020-02-14 12:31:38 · 438 阅读 · 0 评论 -
flutter屏幕适配flutter_screenutil
github:https://github.com/OpenFlutter/flutter_screenutil效果:步骤:1、 增加依赖dependencies: flutter: sdk: flutter flutter_screenutil: ^1.0.22、 在每个使用的地方导入包:import 'package:flutter_screenutil/f...原创 2020-02-13 11:08:25 · 1843 阅读 · 1 评论 -
flutter 网络库dio浅析
目录1.基本的get请求2.宿主和插件的交互2.宿主和插件的交互1.基本的get请求1.1 dio get 创建 dio-1.0.17String url = “https://3g.163.com/touch/reconstruct/article/list/BBM54PGAwangning/0-10.html”;Dio dio = new Dio();Response respon...原创 2020-01-20 23:12:24 · 1519 阅读 · 0 评论 -
flutter缓存管理flutter_cache_manager浅析
github:flutter_cache_managerA CacheManager to download and cache files in the cache directory of the app. Various settings on how long to keep a file can be changed.It uses the cache-control http he...原创 2020-01-16 22:48:04 · 7323 阅读 · 0 评论