flutter
文章平均质量分 94
android晓道
这个作者很懒,什么都没留下…
展开
-
Flutter GetX框架状态管理源码原理分析
GetX状态管理优点性能:GetX 打包后得apk占用大小和运行时得内存占用少效率:语法简洁,并保持了极高得性能,极大缩短开发时间结构:可以将界面、逻辑、依赖和路由完全解耦,逻辑更清晰。生态:能够在Android、iOS、web、Linux、windows上用相同的代码运行。提高开发效率的插件:Getx_template:一键生成框架模板GetX Snippets:代码提示,模板代码状态管理:简单状态管理器(GetBuilder)、响应式状态管理器(GetX)GetX响应式状态管理原创 2021-12-02 15:47:05 · 3532 阅读 · 0 评论 -
Flutter 路由管理源码解析
一、介绍:路由在移动开发中通常指页面,路由管理就指的是管理页面之间的跳转,在flutter中,是通过一个栈的结构来对路由进行维护管理。路由管理也就是说在代码层面其实是对这个栈结构进行管理,其中路由入栈操作就相当于打开一个新的页面,放入这个栈结构中,路由出栈操作对应的是页面关闭操作,但是当一个APP中使用到页面很多时,如何更加有效合理的去管理各个页面之间的关系和跳转逻辑将变得极为重要。**路由:**在flutter中,一个路由中维护了与之相关的路由状态,路由页,以及该路由对应的标签数据以及指针位置等内容。原创 2021-11-26 14:23:02 · 2316 阅读 · 0 评论 -
flutter异常 Redeclaration
在与小伙伴同步代码得时候发生了一个异常具体表现为FlutterToastPlugin.kt: (11, 14): Redeclaration: FlutterToastPlugine: /Users/dma/development/flutter_share/android/app/src/main/kotlin/com/example/souqmubtath/FlutterToastPlugin.kt: (8, 7): Redeclaration: FlutterToastPlugine: /Use原创 2020-09-15 10:15:43 · 3015 阅读 · 3 评论 -
flutter之CupertinoTabBar属性分析
CupertinoTabBarCupertinoTabBar({ Key key, @required this.items, this.onTap, this.currentIndex = 0, this.backgroundColor, this.activeColor, this.inactiveColor = _kDefaultTabBarInactiveColor, this.iconSize = 30.0, this.bo原创 2020-08-21 16:09:01 · 941 阅读 · 1 评论 -
flutter 之BottomNavigationBarItem属性分析
BottomNavigationBarItem BottomNavigationBarItem({ @required this.icon, this.title, Widget activeIcon, this.backgroundColor, })icon:类型:Widget描述:Item显示的图标title:类型:Widget描述:一般使用Text文本,item文字描述activeIcon:类型:Widget描述:被选中时显示的iconbac原创 2020-08-21 15:51:12 · 2224 阅读 · 1 评论 -
Flutter之AppBar属性分析
AppBar可用属性AppBar({ Key key, this.leading, this.automaticallyImplyLeading = true, this.title, this.actions, this.flexibleSpace, this.bottom, this.elevation, this.shadowColor, this.shape, this.backgroundColor,原创 2020-08-21 15:16:13 · 1786 阅读 · 0 评论