Used to generate the template code of GetX framework

Overview

plugin stars issues commit release

Language: English | 中文简体

statement

Description

  • install

image-20210906222922384

  • Plugin effect

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

getx_new

  • Support to modify suffix

image-20210926111944785

  • Alt + Enter : GetBuilder、GetBuilder(Auto Dispose)、Obx、GetX

image-20210802160603092

image-20210802160631405

  • Enter the getx prefix

image-20210922111700625

Features

  • Model: Generate the GetX model

    • Default: Default mode, three files are generated: state, logic, view
    • Easy: Simple mode, two files are generated: logic, view
  • Function: Function selection

    • useFolder: Use a file, a folder will be generated after selection, and the big hump name will be automatically converted to: lowercase + underscore
  • usePrefix: Use the prefix, add the prefix before the generated file, the prefix is: Big Camel Name is automatically converted to: lowercase + underscore

  • autoDispose: If you find that a page cannot automatically recycle GetxController, you can turn on this function, refer to How to automatically recycle GetXController; under normal circumstances, there is no need to turn on this function

  • addLifecycle: Automatically add the life cycle callback method in GetXController, and enable it on demand

  • addBinding: automatically add binding files

    • If you know what binding is, it is recommended to enable this function
    • If you don't understand the concept and function of binding, it is not recommended to turn it on; not using binding will not affect development
  • Module Name: The name of the module, please use the big camel case as much as possible; capitalize the first letter

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
Team management service is a production ready and fully tested service that can be used as a template for a microservices development.

team-mgmt-service Description Team management service is a production ready and fully tested service that can be used as a template for a microservice

Albert Llousas Ortiz 18 Oct 10, 2022
Ktorm KSP extension to help generate boilerplate code.

Ktorm KSP extension to help generate boilerplate code. It can automatically generate Table objects through entity classes, while making entities defined by data classes easier to use, and supports custom extension code generation logic.

KTORM.ORG 24 Dec 30, 2022
A custom OTP view to enter a code usually used in authentication

A custom view to enter a code usually used in authentication. Different types of OTPViews. Easy to use and configure your own view and character of OTP using all the attributes.

Simform Solutions 48 Aug 30, 2022
A project aiming to generate KMP declarations from several library versions

kotlin-ketchup A project aiming to generate KMP declarations from several library versions LICENSE Apache 2.0. See ./LICENSE in this repository See th

Eugene Petrenko 4 Mar 1, 2022
FizzBuzzKotlin - A function fizzBuzz to generate a list of string based on the input number

FizzBuzzKotlin write a function fizzBuzz to generate a list of string based on t

gson 0 Feb 12, 2022
A project that helps us generate the test project to test the Gradle plugin.

Ktlint Gradle Provides the function to generate a Gradle project for us to test your Gradle plugin Latest plugin version: [1.0.0] Table of content How

Jack Chen 5 Jul 20, 2022
🎲 Kotlin Symbol Processor to auto-generate extensive sealed classes and interfaces for Android and Kotlin.

SealedX ?? Kotlin Symbol Processor to auto-generate extensive sealed classes and interfaces for Android and Kotlin. Why SealedX? SealedX generates ext

Jaewoong Eum 236 Nov 30, 2022
A ksp library to automatically generate navigation functions for jetpack compose.

Compose/Navigation/Generator ⚠️ This library is still under development and not considered stable! Content Introduction Usage Example: Single destinat

Steffen Eckardt 4 Sep 13, 2022
KotlinScript that generate Reel from a given image, text and audio

ReelScriot KotlinScript that generate Reel from a given image, text and audio 80f4ea39-a7da-4f21-b0ff-7a17836a1cd0.mp4 6691b51d-d7a3-4915-ae41-8bec400

Chetan Gupta 2 Dec 6, 2022
This is a template to help you get started building amazing Kotlin applications and libraries.

Welcome to the Starter This is a template to help you get started building amazing Kotlin applications and libraries. Over time, examples will be comp

Backbone 8 Nov 4, 2022
KMMT : Kotlin Multiplatform Mobile Template

Kotlin Multiplatform Mobile App Template

Jitty Andiyan 206 Dec 22, 2022
Template for building CLI tool in Kotlin and producing native binary

Kotlin command-line native tool template This template allows you to quickly build command-line tool using Kotlin , Clikt and build a native binary fo

Ryszard Grodzicki 10 Dec 31, 2022
Hexagonal Architecture Kotlin Template

The purpose of this template is to avoid repeating, over and over again, the same basic packages structure, gradle and configurations.

Fabri Di Napoli 10 Dec 14, 2022
My personal template for a Spring Boot REST reactive webapp

My personal spring boot kotlin reactive template Features Spring Security implementation with JWT access and refresh token MongoDB database Project Co

Dušan 2 Dec 1, 2021
Here is a ready to use JAICF bot template that utilises

JAICF Spring Bot template Here is a ready to use JAICF bot template that utilises Spring MongoDB Docker Prometheus Grafana Graylog How to use Please r

Just AI 1 Feb 13, 2022
A basic template ecommerce application with payment integration made using Android Architechture componets

ShopIt ShopIt is a basic template ecommerce application with payment integration(RazorPay), made using Android Architechture componets and Material Co

Apurva Shukla 2 Nov 22, 2021
Template for a modern spring web service.

Spring Service Scaffold A scaffold for a web service operating with a Spring Framework backend, reactjs as frontend and a continuous testing and build

null 0 Nov 15, 2021
For Kotlin with SpringBoot project that have multi-module-structure template

Goals kotlin + spring-boot + gradle + multi-module building Module-Structure ---root |--- src.main.kotlin.KotlinSpringbootMultiModuleTemplateAppl

pguma 1 Jul 24, 2022
An Android template you can use to build your project with gradle kotlin dsl

Android Gradle KTS An Android template you can use to build your project with gradle kotlin dsl Build.gradle.kts You can use your project's build.grad

Deep 17 Sep 12, 2022