|
|
|
@ -8,12 +8,6 @@
|
|
|
|
<option name="JAVA_CODE" value="true" />
|
|
|
|
<option name="JAVA_CODE" value="true" />
|
|
|
|
</context>
|
|
|
|
</context>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
<template name="mhan" value="Handler mHandler = new Handler(){ @Override public void handleMessage(Message msg) { super.handleMessage(msg); $options$ } };" description="MyHandler" toReformat="false" toShortenFQNames="true" useStaticImport="true" deactivated="true">
|
|
|
|
|
|
|
|
<variable name="options" expression="" defaultValue="" alwaysStopAt="true" />
|
|
|
|
|
|
|
|
<context>
|
|
|
|
|
|
|
|
<option name="JAVA_CODE" value="true" />
|
|
|
|
|
|
|
|
</context>
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<template name="resp" value="/// $comment$ Future<$type$> $name$({@required $params$}) => _post<$type$>( $path$, (json) => $type$(json), data: {'$params$': $params$}, );" description="create a request function" toReformat="false" toShortenFQNames="true" deactivated="true">
|
|
|
|
<template name="resp" value="/// $comment$ Future<$type$> $name$({@required $params$}) => _post<$type$>( $path$, (json) => $type$(json), data: {'$params$': $params$}, );" description="create a request function" toReformat="false" toShortenFQNames="true" deactivated="true">
|
|
|
|
<variable name="type" expression="" defaultValue=""TYPE"" alwaysStopAt="true" />
|
|
|
|
<variable name="type" expression="" defaultValue=""TYPE"" alwaysStopAt="true" />
|
|
|
|
<variable name="name" expression="lowercaseAndDash(type)" defaultValue="" alwaysStopAt="false" />
|
|
|
|
<variable name="name" expression="lowercaseAndDash(type)" defaultValue="" alwaysStopAt="false" />
|
|
|
|
@ -24,10 +18,55 @@
|
|
|
|
<option name="DART" value="true" />
|
|
|
|
<option name="DART" value="true" />
|
|
|
|
</context>
|
|
|
|
</context>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
<template name="cc" value="Color(0x$hex$)" description="" toReformat="false" toShortenFQNames="true">
|
|
|
|
<template name="cc" value="AGIColors.argb(0x$hex$)" description="" toReformat="false" toShortenFQNames="true">
|
|
|
|
<variable name="hex" expression="groovyScript("_1.startsWith('#') ? _1.substring(7, 9) + _1.substring(1, 3) + _1.substring(3, 5) + _1.substring(5, 7) : ''", clipboard())" defaultValue="" alwaysStopAt="true" />
|
|
|
|
<variable name="hex" expression="groovyScript("_1.startsWith('#') ? _1.substring(1, 3) + _1.substring(3, 5) + _1.substring(5, 7) + _1.substring(7, 9) : ''", clipboard())" defaultValue="" alwaysStopAt="true" />
|
|
|
|
<context>
|
|
|
|
<context>
|
|
|
|
<option name="DART" value="true" />
|
|
|
|
<option name="DART" value="true" />
|
|
|
|
</context>
|
|
|
|
</context>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<template name="freezed" value="import 'package:flutter/foundation.dart'; import 'package:freezed_annotation/freezed_annotation.dart'; part '$fileName$.freezed.dart'; part '$fileName$.g.dart'; @freezed class $ClassName$ with _$$$ClassName$ { const factory $ClassName$({ $Params$, }) = _$ClassName$; $code$ factory $ClassName$.fromJson(Map<String, dynamic> json) => _$$$ClassName$FromJson(json); }" description="Create feezed template" toReformat="false" toShortenFQNames="true">
|
|
|
|
|
|
|
|
<variable name="fileName" expression="fileNameWithoutExtension()" defaultValue="" alwaysStopAt="true" />
|
|
|
|
|
|
|
|
<variable name="ClassName" expression="dartClassName()" defaultValue="" alwaysStopAt="true" />
|
|
|
|
|
|
|
|
<variable name="Params" expression="dartSuggestVariableName()" defaultValue="" alwaysStopAt="true" />
|
|
|
|
|
|
|
|
<variable name="code" expression="" defaultValue="" alwaysStopAt="true" />
|
|
|
|
|
|
|
|
<context>
|
|
|
|
|
|
|
|
<option name="DART_TOPLEVEL" value="true" />
|
|
|
|
|
|
|
|
</context>
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<template name="freezedAbstract" value="import 'package:freezed_annotation/freezed_annotation.dart'; part '$fileName$.freezed.dart'; @freezed abstract class $ClassName$ with _$$$ClassName$ { const factory $ClassName$({ $Params$, }) = _$ClassName$; $code$ }" description="Create feezed template" toReformat="false" toShortenFQNames="true">
|
|
|
|
|
|
|
|
<variable name="fileName" expression="fileNameWithoutExtension()" defaultValue="" alwaysStopAt="true" />
|
|
|
|
|
|
|
|
<variable name="ClassName" expression="dartClassName()" defaultValue="" alwaysStopAt="true" />
|
|
|
|
|
|
|
|
<variable name="Params" expression="dartSuggestVariableName()" defaultValue="" alwaysStopAt="true" />
|
|
|
|
|
|
|
|
<variable name="code" expression="" defaultValue="" alwaysStopAt="true" />
|
|
|
|
|
|
|
|
<context>
|
|
|
|
|
|
|
|
<option name="DART_TOPLEVEL" value="true" />
|
|
|
|
|
|
|
|
</context>
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<template name="part" value="part '$fileName$.g.dart';" description="Declare part for .g.dart and .freezed.dart" toReformat="true" toShortenFQNames="true">
|
|
|
|
|
|
|
|
<variable name="fileName" expression="fileNameWithoutExtension()" defaultValue="" alwaysStopAt="true" />
|
|
|
|
|
|
|
|
<context>
|
|
|
|
|
|
|
|
<option name="DART_TOPLEVEL" value="true" />
|
|
|
|
|
|
|
|
</context>
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<template name="consumerStatefulWidget" value="class $class_name$ extends ConsumerStatefulWidget { const $class_name$({super.key}); @override ConsumerState createState() => _$class_name$State(); } class _$class_name$State extends ConsumerState<$class_name$> { @override Widget build(BuildContext context) { return Container(); } } " description="New ConsumerStatefulWidget (Riverpod)." toReformat="true" toShortenFQNames="true">
|
|
|
|
|
|
|
|
<variable name="class_name" expression="" defaultValue="" alwaysStopAt="true" />
|
|
|
|
|
|
|
|
<context>
|
|
|
|
|
|
|
|
<option name="DART_TOPLEVEL" value="true" />
|
|
|
|
|
|
|
|
</context>
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<template name="consumerWidget" value="class $class_name$ extends ConsumerWidget { const $class_name$({super.key}); @override Widget build(BuildContext context, WidgetRef ref) { return $code$; } }" description="New ConsumerWidget (Riverpod)." toReformat="true" toShortenFQNames="true">
|
|
|
|
|
|
|
|
<variable name="class_name" expression="" defaultValue="" alwaysStopAt="true" />
|
|
|
|
|
|
|
|
<variable name="code" expression="" defaultValue="" alwaysStopAt="true" />
|
|
|
|
|
|
|
|
<context>
|
|
|
|
|
|
|
|
<option name="DART_TOPLEVEL" value="true" />
|
|
|
|
|
|
|
|
</context>
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<template name="riverpodGeneratorNotiferProvider" value="@riverpod class $NAME$ extends _$$$NAME$ { @override $TYPE$ build() { return $Content$; } }" description="Create a NotifierProvider using generator (Riverpod)." toReformat="true" toShortenFQNames="true">
|
|
|
|
|
|
|
|
<variable name="NAME" expression="dartSuggestVariableName()" defaultValue="Name" alwaysStopAt="true" />
|
|
|
|
|
|
|
|
<variable name="TYPE" expression="dartSuggestVariableName()" defaultValue="Type" alwaysStopAt="true" />
|
|
|
|
|
|
|
|
<variable name="Content" expression="" defaultValue="Content" alwaysStopAt="true" />
|
|
|
|
|
|
|
|
<context>
|
|
|
|
|
|
|
|
<option name="DART_TOPLEVEL" value="true" />
|
|
|
|
|
|
|
|
</context>
|
|
|
|
|
|
|
|
</template>
|
|
|
|
</templateSet>
|
|
|
|
</templateSet>
|