agent-flutter 0.1.13 → 0.1.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agent-flutter",
3
- "version": "0.1.13",
3
+ "version": "0.1.15",
4
4
  "description": "Portable Flutter skill/rule pack initializer for multiple AI IDEs.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -1,5 +1,6 @@
1
1
  #!/usr/bin/env bash
2
- set -euo pipefail
2
+ set -Eeuo pipefail
3
+ trap 'echo "Error at line $LINENO: $BASH_COMMAND" >&2' ERR
3
4
 
4
5
  usage() {
5
6
  cat <<'EOF'
@@ -261,18 +262,30 @@ echo "- App package name: $APP_PACKAGE_NAME"
261
262
  echo "- Org: $ORG_ID"
262
263
  echo "- Flutter version: $FLUTTER_VERSION"
263
264
 
265
+ echo "Preparing Flutter toolchain..."
264
266
  ensure_fvm
267
+ echo "- FVM binary: $FVM_BIN"
265
268
 
266
269
  mkdir -p "$PROJECT_DIR"
267
270
  cd "$PROJECT_DIR"
268
271
 
269
- run_fvm use "$FLUTTER_VERSION" --force
272
+ echo "Running: fvm use $FLUTTER_VERSION --force"
273
+ if ! run_fvm use "$FLUTTER_VERSION" --force; then
274
+ echo "Error: fvm use failed. Please verify your Flutter version and FVM setup." >&2
275
+ echo "Try manually: $FVM_BIN use $FLUTTER_VERSION --force" >&2
276
+ exit 1
277
+ fi
270
278
 
271
279
  create_args=(run_fvm flutter create . --org "$ORG_ID" --project-name "$APP_PACKAGE_NAME")
272
280
  if [[ "$FORCE" -eq 1 ]]; then
273
281
  create_args+=(--overwrite)
274
282
  fi
275
- "${create_args[@]}"
283
+
284
+ echo "Running: flutter create"
285
+ if ! "${create_args[@]}"; then
286
+ echo "Error: flutter create failed. Please verify Flutter SDK and project arguments." >&2
287
+ exit 1
288
+ fi
276
289
 
277
290
  mkdir -p .vscode
278
291
  cat >.vscode/settings.json <<'JSON'
@@ -291,6 +304,7 @@ run_fvm flutter pub add get flutter_bloc equatable dio retrofit json_annotation
291
304
  run_fvm flutter pub add flutter_keyboard_visibility:^6.0.0 cached_network_image:^3.3.1 flutter_inappwebview:^6.1.5 pin_code_fields:^8.0.1 gif:^2.3.0
292
305
  run_fvm flutter pub add carousel_slider:^5.1.1 smooth_page_indicator:^2.0.1
293
306
  run_fvm flutter pub add shared_preferences
307
+ run_fvm flutter pub add percent_indicator:^4.2.2
294
308
  run_fvm flutter pub add common_widget --git-url https://github.com/tuan-urani/common_widget --git-ref main
295
309
  run_fvm flutter pub add --dev build_runner retrofit_generator json_serializable
296
310
 
@@ -857,6 +871,20 @@ cat >lib/src/ui/base/interactor/page_states.dart <<'EOF'
857
871
  enum PageState { initial, loading, failure, success }
858
872
  EOF
859
873
 
874
+ cat >lib/src/enums/toast_type.dart <<'EOF'
875
+ import 'package:flutter/material.dart';
876
+
877
+ import '../utils/app_colors.dart';
878
+
879
+ enum ToastType {
880
+ success(Colors.green),
881
+ error(AppColors.error);
882
+
883
+ final Color color;
884
+ const ToastType(this.color);
885
+ }
886
+ EOF
887
+
860
888
  cat >lib/src/utils/app_shared.dart <<'EOF'
861
889
  import 'dart:async';
862
890
 
@@ -986,6 +1014,8 @@ class LocaleKey {
986
1014
 
987
1015
  static const String homeTitle = 'home_title';
988
1016
  static const String loginSessionExpires = 'loginSessionExpires';
1017
+ static const String ok = 'ok';
1018
+ static const String cancel = 'cancel';
989
1019
  static const String widgetCancel = 'widgetCancel';
990
1020
  static const String widgetConfirm = 'widgetConfirm';
991
1021
  }
@@ -997,6 +1027,8 @@ import 'locale_key.dart';
997
1027
  final Map<String, String> enUs = <String, String>{
998
1028
  LocaleKey.homeTitle: 'Home',
999
1029
  LocaleKey.loginSessionExpires: 'Login session expires!',
1030
+ LocaleKey.ok: 'OK',
1031
+ LocaleKey.cancel: 'Cancel',
1000
1032
  LocaleKey.widgetCancel: 'Cancel',
1001
1033
  LocaleKey.widgetConfirm: 'Confirm',
1002
1034
  };
@@ -1008,6 +1040,8 @@ import 'locale_key.dart';
1008
1040
  final Map<String, String> jaJp = <String, String>{
1009
1041
  LocaleKey.homeTitle: 'ホーム',
1010
1042
  LocaleKey.loginSessionExpires: 'ログインセッションが期限切れです!',
1043
+ LocaleKey.ok: 'OK',
1044
+ LocaleKey.cancel: 'キャンセル',
1011
1045
  LocaleKey.widgetCancel: 'キャンセル',
1012
1046
  LocaleKey.widgetConfirm: '決定する',
1013
1047
  };