Skip to content

Commit

Permalink
Fix widget
Browse files Browse the repository at this point in the history
  • Loading branch information
Leonavichus committed Aug 29, 2024
1 parent 1d7cbbd commit 55e8137
Show file tree
Hide file tree
Showing 27 changed files with 65 additions and 3 deletions.
14 changes: 14 additions & 0 deletions lib/app/modules/settings/view/settings.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import 'package:flutter_local_notifications/flutter_local_notifications.dart';
import 'package:gap/gap.dart';
import 'package:geolocator/geolocator.dart';
import 'package:get/get.dart';
import 'package:home_widget/home_widget.dart';
import 'package:iconsax_plus/iconsax_plus.dart';
import 'package:intl/intl.dart';
import 'package:line_awesome_flutter/line_awesome_flutter.dart';
Expand Down Expand Up @@ -638,6 +639,19 @@ class _SettingsPageState extends State<SettingsPage> {
),
),
),
SettingCard(
elevation: 4,
icon: const Icon(IconsaxPlusLinear.add_square),
text: 'addWidget'.tr,
onPressed: () {
HomeWidget.requestPinWidget(
name: androidWidgetName,
androidName: androidWidgetName,
qualifiedAndroidName:
'com.yoshi.rain.OreoWidget',
);
},
),
SettingCard(
elevation: 4,
icon:
Expand Down
2 changes: 2 additions & 0 deletions lib/translation/bn_in.dart
Original file line number Diff line number Diff line change
Expand Up @@ -135,5 +135,7 @@ class BnIn {
'clearCacheStore': 'ক্যাশ পরিষ্কার করুন',
'deletedCacheStore': 'ক্যাশ পরিষ্কার করা হচ্ছে',
'deletedCacheStoreQuery': 'আপনি কি সত্যিই ক্যাশ পরিষ্কার করতে চান?',
'addWidget': 'উইজেট যোগ করুন',
'hideMap': 'মানচিত্র লুকান',
};
}
2 changes: 2 additions & 0 deletions lib/translation/cs_cz.dart
Original file line number Diff line number Diff line change
Expand Up @@ -135,5 +135,7 @@ class CsCz {
'clearCacheStore': 'Vymazat mezipaměť',
'deletedCacheStore': 'Čištění mezipaměti',
'deletedCacheStoreQuery': 'Opravdu chcete vymazat mezipaměť?',
'addWidget': 'Přidat widget',
'hideMap': 'Skrýt mapu',
};
}
2 changes: 2 additions & 0 deletions lib/translation/da_dk.dart
Original file line number Diff line number Diff line change
Expand Up @@ -136,5 +136,7 @@ class DaDk {
'clearCacheStore': 'Ryd cache',
'deletedCacheStore': 'Rydder cache',
'deletedCacheStoreQuery': 'Er du sikker på, at du vil rydde cachen?',
'addWidget': 'Tilføj widget',
'hideMap': 'Skjul kort',
};
}
2 changes: 2 additions & 0 deletions lib/translation/de_de.dart
Original file line number Diff line number Diff line change
Expand Up @@ -138,5 +138,7 @@ class DeDe {
'deletedCacheStore': 'Cache wird geleert',
'deletedCacheStoreQuery':
'Sind Sie sicher, dass Sie den Cache leeren möchten?',
'addWidget': 'Widget hinzufügen',
'hideMap': 'Karte ausblenden',
};
}
2 changes: 2 additions & 0 deletions lib/translation/en_us.dart
Original file line number Diff line number Diff line change
Expand Up @@ -136,5 +136,7 @@ class EnUs {
'clearCacheStore': 'Clear cache',
'deletedCacheStore': 'Clearing the cache',
'deletedCacheStoreQuery': 'Are you sure you want to clear the cache?',
'addWidget': 'Add widget',
'hideMap': 'Hide map',
};
}
2 changes: 2 additions & 0 deletions lib/translation/es_es.dart
Original file line number Diff line number Diff line change
Expand Up @@ -138,5 +138,7 @@ class EsEs {
'deletedCacheStore': 'Borrando caché',
'deletedCacheStoreQuery':
'¿Estás seguro de que quieres borrar el caché?',
'addWidget': 'Agregar widget',
'hideMap': 'Ocultar mapa',
};
}
2 changes: 2 additions & 0 deletions lib/translation/fa_ir.dart
Original file line number Diff line number Diff line change
Expand Up @@ -137,5 +137,7 @@ class FaIr {
'deletedCacheStore': 'در حال پاک کردن حافظه نهان',
'deletedCacheStoreQuery':
'آیا مطمئن هستید که می‌خواهید حافظه نهان را پاک کنید؟',
'addWidget': 'افزودن ویجت',
'hideMap': 'پنهان کردن نقشه',
};
}
2 changes: 2 additions & 0 deletions lib/translation/fr_fr.dart
Original file line number Diff line number Diff line change
Expand Up @@ -137,5 +137,7 @@ class FrFr {
'clearCacheStore': 'Effacer le cache',
'deletedCacheStore': 'Effacement du cache',
'deletedCacheStoreQuery': 'Êtes-vous sûr de vouloir effacer le cache?',
'addWidget': 'Ajouter un widget',
'hideMap': 'Cacher la carte',
};
}
2 changes: 2 additions & 0 deletions lib/translation/ga_ie.dart
Original file line number Diff line number Diff line change
Expand Up @@ -138,5 +138,7 @@ class GaIe {
'deletedCacheStore': 'Ag glanadh an taisce',
'deletedCacheStoreQuery':
'An bhfuil tú cinnte gur mian leat an taisce a ghlanadh?',
'addWidget': 'Cuir giuirléid leis',
'hideMap': 'Folaigh léarscáil',
};
}
2 changes: 2 additions & 0 deletions lib/translation/hi_in.dart
Original file line number Diff line number Diff line change
Expand Up @@ -134,5 +134,7 @@ class HiIn {
'clearCacheStore': 'कैश साफ़ करें',
'deletedCacheStore': 'कैश साफ़ हो रहा है',
'deletedCacheStoreQuery': 'क्या आप वाकई कैश साफ़ करना चाहते हैं?',
'addWidget': 'विजेट जोड़ें',
'hideMap': 'मानचित्र छिपाएँ',
};
}
2 changes: 2 additions & 0 deletions lib/translation/hu_hu.dart
Original file line number Diff line number Diff line change
Expand Up @@ -137,5 +137,7 @@ class HuHu {
'clearCacheStore': 'Gyorsítótár törlése',
'deletedCacheStore': 'Gyorsítótár törlése folyamatban',
'deletedCacheStoreQuery': 'Biztosan törölni szeretné a gyorsítótárat?',
'addWidget': 'Widget hozzáadása',
'hideMap': 'Térkép elrejtése',
};
}
2 changes: 2 additions & 0 deletions lib/translation/it_it.dart
Original file line number Diff line number Diff line change
Expand Up @@ -137,5 +137,7 @@ class ItIt {
'clearCacheStore': 'Cancella cache',
'deletedCacheStore': 'Cancellazione della cache',
'deletedCacheStoreQuery': 'Sei sicuro di voler cancellare la cache?',
'addWidget': 'Aggiungi widget',
'hideMap': 'Nascondi mappa',
};
}
2 changes: 2 additions & 0 deletions lib/translation/ka_ge.dart
Original file line number Diff line number Diff line change
Expand Up @@ -137,5 +137,7 @@ class KaGe {
'deletedCacheStore': 'ქეშის გასუფთავება მიმდინარეობს',
'deletedCacheStoreQuery':
'დარწმუნებული ხართ, რომ გსურთ ქეშის გასუფთავება?',
'addWidget': 'ვიდჯეტის დამატება',
'hideMap': 'რუკის დამალვა',
};
}
2 changes: 2 additions & 0 deletions lib/translation/ko_kr.dart
Original file line number Diff line number Diff line change
Expand Up @@ -132,5 +132,7 @@ class KoKr {
'clearCacheStore': '캐시 지우기',
'deletedCacheStore': '캐시 삭제 중',
'deletedCacheStoreQuery': '캐시를 정말로 지우시겠습니까?',
'addWidget': '위젯 추가',
'hideMap': '지도를 숨기기',
};
}
2 changes: 2 additions & 0 deletions lib/translation/nl_nl.dart
Original file line number Diff line number Diff line change
Expand Up @@ -137,5 +137,7 @@ class NlNl {
'clearCacheStore': 'Cache wissen',
'deletedCacheStore': 'Cache wissen',
'deletedCacheStoreQuery': 'Weet je zeker dat je de cache wilt wissen?',
'addWidget': 'Widget toevoegen',
'hideMap': 'Kaart verbergen',
};
}
2 changes: 2 additions & 0 deletions lib/translation/pl_pl.dart
Original file line number Diff line number Diff line change
Expand Up @@ -136,5 +136,7 @@ class PlPl {
'deletedCacheStore': 'Czyszczenie pamięci podręcznej',
'deletedCacheStoreQuery':
'Czy na pewno chcesz wyczyścić pamięć podręczną?',
'addWidget': 'Dodaj widget',
'hideMap': 'Ukryj mapę',
};
}
2 changes: 2 additions & 0 deletions lib/translation/pt_br.dart
Original file line number Diff line number Diff line change
Expand Up @@ -136,5 +136,7 @@ class PtBr {
'clearCacheStore': 'Limpar cache',
'deletedCacheStore': 'Limpando cache',
'deletedCacheStoreQuery': 'Tem certeza de que deseja limpar o cache?',
'addWidget': 'Adicionar widget',
'hideMap': 'Ocultar mapa',
};
}
2 changes: 2 additions & 0 deletions lib/translation/ro_ro.dart
Original file line number Diff line number Diff line change
Expand Up @@ -135,5 +135,7 @@ class RoRo {
'clearCacheStore': 'Șterge cache-ul',
'deletedCacheStore': 'Ștergerea cache-ului',
'deletedCacheStoreQuery': 'Ești sigur că vrei să ștergi cache-ul?',
'addWidget': 'Adaugă widget',
'hideMap': 'Ascunde harta',
};
}
2 changes: 2 additions & 0 deletions lib/translation/ru_ru.dart
Original file line number Diff line number Diff line change
Expand Up @@ -136,5 +136,7 @@ class RuRu {
'clearCacheStore': 'Очистить кэш',
'deletedCacheStore': 'Очистка кэша',
'deletedCacheStoreQuery': 'Вы уверены, что хотите очистить кэш?',
'addWidget': 'Добавить виджет',
'hideMap': 'Скрыть карту',
};
}
2 changes: 2 additions & 0 deletions lib/translation/sk_sk.dart
Original file line number Diff line number Diff line change
Expand Up @@ -136,5 +136,7 @@ class SkSk {
'deletedCacheStore': 'Vymazávanie vyrovnávacej pamäte',
'deletedCacheStoreQuery':
'Ste si istí, že chcete vymazať vyrovnávaciu pamäť?',
'addWidget': 'Pridať widget',
'hideMap': 'Skryť mapu',
};
}
2 changes: 2 additions & 0 deletions lib/translation/tr_tr.dart
Original file line number Diff line number Diff line change
Expand Up @@ -136,5 +136,7 @@ class TrTr {
'deletedCacheStore': 'Önbellek temizleniyor',
'deletedCacheStoreQuery':
'Önbelleği temizlemek istediğinizden emin misiniz?',
'addWidget': 'Widget ekle',
'hideMap': 'Haritayı gizle',
};
}
2 changes: 2 additions & 0 deletions lib/translation/ur_pk.dart
Original file line number Diff line number Diff line change
Expand Up @@ -136,5 +136,7 @@ class UrPk {
'clearCacheStore': 'کیچ صاف کریں',
'deletedCacheStore': 'کیچ صاف کی جارہی ہے',
'deletedCacheStoreQuery': 'کیا آپ واقعی کیچ صاف کرنا چاہتے ہیں؟',
'addWidget': 'ویجٹ شامل کریں',
'hideMap': 'نقشہ چھپائیں',
};
}
2 changes: 2 additions & 0 deletions lib/translation/zh_ch.dart
Original file line number Diff line number Diff line change
Expand Up @@ -131,5 +131,7 @@ class ZhCh {
'clearCacheStore': '清除缓存',
'deletedCacheStore': '正在清除缓存',
'deletedCacheStoreQuery': '您确定要清除缓存吗?',
'addWidget': '添加小部件',
'hideMap': '隐藏地图',
};
}
2 changes: 2 additions & 0 deletions lib/translation/zh_tw.dart
Original file line number Diff line number Diff line change
Expand Up @@ -132,5 +132,7 @@ class ZhTw {
'clearCacheStore': '清除快取',
'deletedCacheStore': '正在清除快取',
'deletedCacheStoreQuery': '您確定要清除快取嗎?',
'addWidget': '新增小工具',
'hideMap': '隱藏地圖',
};
}
4 changes: 2 additions & 2 deletions pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -606,10 +606,10 @@ packages:
dependency: "direct main"
description:
name: home_widget
sha256: "2a0fdd6267ff975bd07bedf74686bd5577200f504f5de36527ac1b56bdbe68e3"
sha256: b313e3304c0429669fddf1286e1fbf61a64b873f38ba30b3eb890ef0d7560b12
url: "https://pub.dev"
source: hosted
version: "0.6.0"
version: "0.7.0"
html:
dependency: transitive
description:
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ dependencies:
timezone: ^0.9.4
geocoding: ^3.0.0
geolocator: ^13.0.1
home_widget: ^0.6.0
home_widget: ^0.7.0
workmanager: ^0.5.2
flutter_map: ^7.0.2
google_fonts: ^6.2.1
Expand Down

0 comments on commit 55e8137

Please sign in to comment.