Skip to content

Instantly share code, notes, and snippets.

View ZedXCode's full-sized avatar
🎯
Focusing

ZedXCode

🎯
Focusing
View GitHub Profile
@ZedXCode
ZedXCode / MultiSelectionCheckBoxDialog.dart
Last active September 25, 2025 11:11
Code for Multi selection dialog using checkbox selection
//Common function which we put in PUBFUN
static void openMultiSelectDialogGenericDynamic({
required List<CommonStringModel> items,
required RxList<CommonStringModel> selectedItems,
required String title,
required Function(List<CommonStringModel>)? onSelectionChanged,
}) {
showDialog(
context: Get.context!,
@ZedXCode
ZedXCode / AppDetails.dart
Created September 25, 2025 10:32
AppDetails
static Future<String> get appVersion async {
PackageInfo packageInfo = await PackageInfo.fromPlatform();
String version = packageInfo.version;
return version;
}
static Future<String> get packageName async {
PackageInfo packageInfo = await PackageInfo.fromPlatform();
String packageName = packageInfo.packageName;
return packageName;