Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
## [1.9.0]
- Update to Getx 5 standards

## [1.8.4]
- Update dependencies

## [1.8.3]
- jsonToJson updated
- version dependency updated

## [1.8.2]
- Replace cli_dialog with dcli
- version dependency updated
Expand Down
3 changes: 1 addition & 2 deletions lib/common/menu/menu.dart
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@ class Menu {
// final answer = dialog.ask();
// final result = answer['result'] as String;
print("");
final result =
menu(prompt: title, options: choices, defaultOption: choices[0]);
final result = menu(title, options: choices, defaultOption: choices[0]);
final index = choices.indexOf(result);

return Answer(result: result, index: index);
Expand Down
4 changes: 0 additions & 4 deletions lib/common/utils/json_serialize/json_ast/location.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
import 'package:meta/meta.dart';

@immutable
class Loc {
final int? line;
final int? column;
Expand All @@ -25,7 +22,6 @@ class Segment extends Loc {
int get hashCode => line.hashCode ^ column.hashCode ^ offset.hashCode;
}

@immutable
class Location {
final Segment start;
final Segment end;
Expand Down
23 changes: 1 addition & 22 deletions lib/common/utils/json_serialize/json_ast/tokenize.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import 'package:meta/meta.dart';

import './error.dart';
import './location.dart';
import './tokenize_error_types.dart';
Expand Down Expand Up @@ -78,7 +76,6 @@ bool _compareDynamicList(List? l, List? other) {
return true;
}

@immutable
class Node {
final String type;
final Location? loc;
Expand Down Expand Up @@ -170,10 +167,6 @@ class ObjectNode extends Node {
type == other.type &&
loc == other.loc &&
_compareDynamicList(children, other.children);

@override
// TODO: implement hashCode
int get hashCode => super.hashCode;
}

class ArrayNode extends Node {
Expand Down Expand Up @@ -201,10 +194,6 @@ class ArrayNode extends Node {
type == other.type &&
loc == other.loc &&
_compareDynamicList(children, other.children);

@override
// TODO: implement hashCode
int get hashCode => super.hashCode;
}

class PropertyNode extends Node {
Expand Down Expand Up @@ -250,10 +239,6 @@ class PropertyNode extends Node {
loc: loc ?? this.loc,
);
}

@override
// TODO: implement hashCode
int get hashCode => super.hashCode;
}

class LiteralNode extends Node {
Expand Down Expand Up @@ -288,13 +273,8 @@ class LiteralNode extends Node {
loc: loc ?? this.loc,
);
}

@override
// TODO: implement hashCode
int get hashCode => super.hashCode;
}

@immutable
class ValueIndex<T> {
final T value;
final int index;
Expand All @@ -306,8 +286,7 @@ class ValueIndex<T> {
other is ValueIndex<T> && value == other.value && index == other.index;

@override
// TODO: implement hashCode
int get hashCode => super.hashCode;
int get hashCode => value.hashCode ^ index.hashCode;
}

// HELPERS
Expand Down
4 changes: 0 additions & 4 deletions lib/common/utils/json_serialize/sintaxe.dart
Original file line number Diff line number Diff line change
Expand Up @@ -391,8 +391,4 @@ class ClassDefinition {
}
}
}

@override
// TODO: implement hashCode
int get hashCode => super.hashCode;
}
12 changes: 7 additions & 5 deletions lib/samples/impl/get_binding.dart
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,14 @@ class BindingSample extends Sample {
String get content => '''$_import
import 'package:${PubspecUtils.projectName}/$_controllerDir';

class $_bindingName extends Bindings {
class $_bindingName extends Binding {
@override
void dependencies() {
Get.lazyPut<${_fileName.pascalCase}Controller>(
() => ${_fileName.pascalCase}Controller(),
);
List<Bind> dependencies() {
return [
Bind.lazyPut<${_fileName.pascalCase}Controller>(
() => ${_fileName.pascalCase}Controller(),
)
];
}
}
''';
Expand Down
2 changes: 1 addition & 1 deletion lib/samples/impl/get_view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import 'package:get/get.dart';
$import

class $_viewName extends $_controllerName {
const $_viewName({Key? key}) : super(key: key);
const $_viewName({super.key});
@override
Widget build(BuildContext context) {
return Scaffold(
Expand Down
36 changes: 20 additions & 16 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,30 +1,34 @@
name: get_cli
version: 1.8.2
version: 1.9.0
homepage: https://github.com/jonataslaw/get_cli
description: Official CLI for GetX™ framework to build Flutter and Server
Applications easily
environment:
sdk: ">=2.17.0 <3.0.0"

dependency_overrides:
_fe_analyzer_shared: ^61.0.0
analyzer: ^5.4.0

dependencies:
# archive: ^3.1.2
ansicolor: ">=2.0.1 <3.0.0"
collection: ">=1.15.0 <2.0.0"
dart_style: ">=2.0.1 <3.0.0"
dcli: ^1.31.2
http: ">=0.13.4 <2.0.0"
intl: ">=0.17.0 <1.0.0"
meta: ">=1.7.0 <2.0.0"
path: ">=1.8.0 <2.0.0"
process_run: ">=0.12.2 <1.0.0"
pubspec: ">=2.0.1 <3.0.0"
recase: ">=4.0.0 <5.0.0"
version: ">=2.0.0 <4.0.0"
yaml: ">=3.1.0 <4.0.0"
analyzer: ^5.4.0
ansicolor: ^2.0.1
collection: ^1.17.1
dart_style: ^2.0.1
dcli: ^3.0.2
http: ^0.13.5
intl: ^0.18.0
path: ^1.8.3
process_run: ^0.12.5+3
pubspec: ^2.3.0
recase: ^4.1.0
version: ^3.0.2
yaml: ^3.1.1

dev_dependencies:
lints: ^2.0.0
test: ^1.5.0
lints: ^2.0.1
test: ^1.23.1

executables:
get: get
Expand Down