Flutter GetX模板代码生成 Gradle模式开发---Used to generate the template code of GetX framework

Overview

getx_template

语言: English | 中文简体

GetX usage

Renderings

  • Plug-in effect

    • Take a look at the effect diagram used by the plug-in. The style refers to the fish_redux plug-in style.
    • There are some optional functions, so make it into a multi-button style, you can operate according to your own needs

getx_template

Description

The description of the plug-in

  • Model: generates the GetX mode,

    • Default: the Default mode. Three files are generated: state,logic, and view.
    • Easy: in simple mode, three files are generated: logic,view
  • Function: Function selection

    • useFolder: use a file. After you select it, a folder is generated. The Hump name is automatically converted to lowercase + underscore.
    • useprefix: use the prefix, the generated file front prefix, prefix for: large hump named automatically converted to: lowercase + underline
  • Module Name: the Name of the Module. Use the hump Name.

Comments
  • 新增Widget報錯

    新增Widget報錯

    Android Studio 4.2.2. 使用新增 圖片

    於main import 档案

    import 'widgets/l_drawer/l_drawer_view.dart';
    

    圖片

    终端报错

    The following message was thrown building _FocusMarker:
    "LDrawerLogic" not found. You need to call "Get.put(LDrawerLogic())" or "Get.lazyPut(()=>LDrawerLogic())"
    
    • 文章里用的都是 StatelessWidget,Template 出来是 StatefulWidget 有特别用?
    opened by lmanliang 9
  • 第一次用get,请教个问题,怎么显示从相册或相机选择的图片

    第一次用get,请教个问题,怎么显示从相册或相机选择的图片

    class SetAvatarLogic extends GetxController { final state = SetAvatarState(); File selectedFile;

    Future getImage(bool isTakingPhoto) async { Navigator.pop(Get.context); var image = await ImagePicker.pickImage( source: isTakingPhoto ? ImageSource.camera : ImageSource.gallery); if (image != null) { selectedFile = File(image.path); } return image; } }

    class SetAvatarPageextends StatelessWidget { final SetAvatarLogic logic = Get.put(SetAvatarLogic()); .......... //下面这段肯定是错的,我不知道该怎么写 child: Obx(() { return Image( image: logic.selectedFile == null ? AssetImage("assets/tab_session_pressed.png") : FileImage(logic.selectedFile)); }),```

    opened by xp664221812 5
  • 请教一下

    请教一下

    TabBarView(
       controller: _tabController,
       children: [
         Page(text:1),
         Page(text:2),
         Page(text:3),
       ],
     )
    

    想请教一下getx如何通过构造函数设置参数,或者有什么等效的方法

    opened by criusKer 4
  • Good practices

    Good practices

    Hello, this is nice work.. And for me for fan of GetX this plugin can be very usable.

    But I see that you are making you comment your code or commits in nonenglish language. But some programmers which can make some contributes are from different country then you and doesn't understand your language. So it is a good practice make any comments in code in english language which is universal simple language used everywhere any programmers around the world.. ;) :)

    And it is also consistent because in all your code everywhere will be used only one language which is understandable for any programmer.. ;)

    opened by mjablecnik 4
  • [Question] 为什么文档中说Bloc无法真正的跨页面交互

    [Question] 为什么文档中说Bloc无法真正的跨页面交互

    这两天想迁移到GetX,从Getx项目链接过来的,看到文档的开头我有点不解:

    When using Bloc, there is a problem that I have been very concerned about so far, it is impossible to truly cross- page interaction! After repeatedly consulting official documents, a global Bloc method was used to achieve "pseudo" cross- page interaction.

    为什么说Bloc无法做夸页面交互,文档中的final JumpOneLogic logic = Get.put(JumpOneLogic());final JumpTwoLogic twoLogic = Get.put(JumpTwoLogic()); 不就是等价于两个局部的BlocProvider吗,Bloc自身就使用Provider库作为依赖管理,应该是能实现文档中跨页面交互的需求,而不需要使用全局路由。当然,GetX能提供更清晰易用的依赖管理倒是真的。

    opened by aitsuki 3
  • 希望支持更多的快捷代码生成方法

    希望支持更多的快捷代码生成方法

    getx-snippets-intelliJ貌似好久没有更新了。新版本的AndroidStudio 2020.3.1装不了getx-snippets-intelliJ。看到getx_template支持快捷方法后立马换了getx_template,但是感觉getx_template的快捷代码生成不是很多(getx-snippets-intelliJ原本的快捷代码生成也不多),希望能和VScode版本的getx_snippets_extension一样支持更多的快捷代码生成方法

    getx_snippets_extension的快捷代码生成是json格式的,似乎有区别。。

    enhancement 
    opened by zhoujia456888 3
  • 建议 LintNorm 拆分

    建议 LintNorm 拆分

    新建项目默认只有 flutter_lints 没有 lint,这种情况下希望仅处理 flutter_lints 相关的警告(key),不用管未启用的 lint 相关的警告(声明可以自动推导的类型)。

    不知道能不能自动分析 pubspec.yaml 确认启用了哪些规则,能的话自动调整行为感觉会更方便,或者简单拆成俩选项也行。

    enhancement 
    opened by CCXXXI 2
  • 我在idea 2020.3版本上安装后

    我在idea 2020.3版本上安装后

    第一次正常使用,第二次再new就不出来了,报错java.lang.NullPointerException at NewGetx,actionPerformed(NewGetX.java:37) t com.intellij.openapi.actionSystem.ex.ActionUtil.performActionDumbAware(ActionUtil.java:281) at com.intellij.openapi.actionSystem.impl.ActionMenuItem$ActionTransmitter.lambda$actionPerformed$0(ActionMenuItem.java:310) at com.intellij.openapi.wm.impl.FocusManagerImpl.runOnOwnContext(FocusManagerImpl.java:286) at com.intellij.openapi.wm.impl.IdeFocusManagerImpl.runOnOwnContext(IdeFocusManagerImpl.java:77) at com.intellij.openapi.actionSystem.impl.ActionMenuItem$ActionTransmitter.actionPerformed(ActionMenuItem.java:299) at java.desktop/javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1967) at com.intellij.openapi.actionSystem.impl.ActionMenuItem.lambda$fireActionPerformed$0(ActionMenuItem.java:110) at com.intellij.openapi.application.TransactionGuardImpl.performUserActivity(TransactionGuardImpl.java:95) at com.intellij.openapi.actionSystem.impl.ActionMenuItem.fireActionPerformed(ActionMenuItem.java:110) at java.desktop/javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2308) at java.desktop/javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:405) at java.desktop/javax.swing.JToggleButton$ToggleButtonModel.setPressed(JToggleButton.java:401) at java.desktop/javax.swing.AbstractButton.doClick(AbstractButton.java:369) at java.desktop/com.apple.laf.ScreenMenuItemCheckbox.itemStateChanged(ScreenMenuItemCheckbox.java:198) at java.desktop/java.awt.CheckboxMenuItem.processItemEvent(CheckboxMenuItem.java:396) at java.desktop/java.awt.CheckboxMenuItem.processEvent(CheckboxMenuItem.java:364) at java.desktop/java.awt.MenuComponent.dispatchEventImpl(MenuComponent.java:375) at java.desktop/java.awt.MenuComponent.dispatchEvent(MenuComponent.java:363) at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:781) at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:727) at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721) at java.base/java.security.AccessController.doPrivileged(Native Method) at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85) at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:95) at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:751) at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:749) at java.base/java.security.AccessController.doPrivileged(Native Method) at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85) at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:748) at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:976) at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:843) at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$8(IdeEventQueue.java:454) at com.intellij.openapi.progress.impl.CoreProgressManager.computePrioritized(CoreProgressManager.java:773) at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$9(IdeEventQueue.java:453) at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:822) at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:507) at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203) at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124) at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113) at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109) at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101) at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)

    opened by cit117 2
Releases(v3.2.6)
Owner
小呆呆666
小呆呆666
Spring Framework

Spring Framework This is the home of the Spring Framework: the foundation for all Spring projects. Collectively the Spring Framework and the family of

Spring 50.4k Jan 9, 2023
Play Framework

Play Framework - The High Velocity Web Framework The Play Framework combines productivity and performance making it easy to build scalable web applica

Play Framework 12.3k Dec 29, 2022
:rocket: Lightning fast and elegant mvc framework for Java8

Based on Java8 + Netty4 to create a lightweight, high-performance, simple and elegant Web framework ?? Spend 1 hour to learn it to do something intere

Blade Framework 5.7k Dec 28, 2022
The Grails Web Application Framework

Build Status Slack Signup Slack Signup Grails Grails is a framework used to build web applications with the Groovy programming language. The core fram

grails 2.7k Jan 5, 2023
Ninja is a full stack web framework for Java. Rock solid, fast and super productive.

_______ .___ _______ ____. _____ \ \ | |\ \ | | / _ \ / | \| |/ | \ | |/ /_\ \ / | \

Ninja Web Framework 1.9k Jan 5, 2023
Vaadin 6, 7, 8 is a Java framework for modern Java web applications.

Vaadin Framework Vaadin allows you to build modern web apps efficiently in plain Java, without touching low level web technologies. This repository co

Vaadin 1.7k Jan 5, 2023
The modular web framework for Java and Kotlin

∞ do more, more easily Jooby is a modern, performant and easy to use web framework for Java and Kotlin built on top of your favorite web server. Java:

jooby 1.5k Dec 16, 2022
Apache Wicket - Component-based Java web framework

What is Apache Wicket? Apache Wicket is an open source, java, component based, web application framework. With proper mark-up/logic separation, a POJO

The Apache Software Foundation 657 Dec 31, 2022
Micro Java Web Framework

Micro Java Web Framework It's an open source (Apache License) micro web framework in Java, with minimal dependencies and a quick learning curve. The g

Pippo 769 Dec 19, 2022
True Object-Oriented Java Web Framework

Project architect: @paulodamaso Takes is a true object-oriented and immutable Java8 web development framework. Its key benefits, comparing to all othe

Yegor Bugayenko 748 Dec 23, 2022
ZK is a highly productive Java framework for building amazing enterprise web and mobile applications

ZK ZK is a highly productive Java framework for building amazing enterprise web and mobile applications. Resources Documentation Tutorial ZK Essential

ZK 375 Dec 23, 2022
Firefly is an asynchronous web framework for rapid development of high-performance web application.

What is Firefly? Firefly framework is an asynchronous Java web framework. It helps you create a web application Easy and Quickly. It provides asynchro

Alvin Qiu 289 Dec 18, 2022
An Intuitive, Lightweight, High Performance Full Stack Java Web Framework.

mangoo I/O mangoo I/O is a Modern, Intuitive, Lightweight, High Performance Full Stack Java Web Framework. It is a classic MVC-Framework. The foundati

Sven Kubiak 52 Oct 31, 2022
jetbrick web mvc framework

jetbrick-webmvc Web MVC framework for jetbrick. Documentation http://subchen.github.io/jetbrick-webmvc/ Dependency <dependency> <groupId>com.githu

Guoqiang Chen 25 Nov 15, 2022
A simple expressive web framework for java. Spark has a kotlin DSL https://github.com/perwendel/spark-kotlin

Spark - a tiny web framework for Java 8 Spark 2.9.3 is out!! Changeset <dependency> <groupId>com.sparkjava</groupId> <artifactId>spark-core</a

Per Wendel 9.4k Dec 29, 2022
:rocket: Lightning fast and elegant mvc framework for Java8

Based on Java8 + Netty4 to create a lightweight, high-performance, simple and elegant Web framework ?? Spend 1 hour to learn it to do something intere

Blade Framework 5.7k Jan 5, 2023
Realtime Client Server Framework for the JVM, supporting WebSockets with Cross-Browser Fallbacks

Welcome to Atmosphere: The Event Driven Framework supporting WebSocket and HTTP The Atmosphere Framework contains client and server side components fo

Atmosphere Framework 3.6k Jan 3, 2023
A web MVC action-based framework, on top of CDI, for fast and maintainable Java development.

A web MVC action-based framework, on top of CDI, for fast and maintainable Java development. Downloading For a quick start, you can use this snippet i

Caelum 347 Nov 15, 2022