fix : some ui and
This commit is contained in:
@@ -32,6 +32,9 @@ class $AssetsAnimGen {
|
||||
class $AssetsIconsGen {
|
||||
const $AssetsIconsGen();
|
||||
|
||||
/// File path: assets/icons/active_fram.svg
|
||||
SvgGenImage get activeFram => const SvgGenImage('assets/icons/active_fram.svg');
|
||||
|
||||
/// File path: assets/icons/add.svg
|
||||
SvgGenImage get add => const SvgGenImage('assets/icons/add.svg');
|
||||
|
||||
@@ -89,6 +92,9 @@ class $AssetsIconsGen {
|
||||
/// File path: assets/icons/chicken_house.svg
|
||||
SvgGenImage get chickenHouse => const SvgGenImage('assets/icons/chicken_house.svg');
|
||||
|
||||
/// File path: assets/icons/chicken_inspection.svg
|
||||
SvgGenImage get chickenInspection => const SvgGenImage('assets/icons/chicken_inspection.svg');
|
||||
|
||||
/// File path: assets/icons/chicken_map_marker.svg
|
||||
SvgGenImage get chickenMapMarker => const SvgGenImage('assets/icons/chicken_map_marker.svg');
|
||||
|
||||
@@ -164,6 +170,9 @@ class $AssetsIconsGen {
|
||||
/// File path: assets/icons/farm.svg
|
||||
SvgGenImage get farm => const SvgGenImage('assets/icons/farm.svg');
|
||||
|
||||
/// File path: assets/icons/farms.svg
|
||||
SvgGenImage get farms => const SvgGenImage('assets/icons/farms.svg');
|
||||
|
||||
/// File path: assets/icons/filter.svg
|
||||
SvgGenImage get filter => const SvgGenImage('assets/icons/filter.svg');
|
||||
|
||||
@@ -272,6 +281,9 @@ class $AssetsIconsGen {
|
||||
/// File path: assets/icons/receipt_discount.svg
|
||||
SvgGenImage get receiptDiscount => const SvgGenImage('assets/icons/receipt_discount.svg');
|
||||
|
||||
/// File path: assets/icons/registerKill.svg
|
||||
SvgGenImage get registerKill => const SvgGenImage('assets/icons/registerKill.svg');
|
||||
|
||||
/// File path: assets/icons/sale.svg
|
||||
SvgGenImage get sale => const SvgGenImage('assets/icons/sale.svg');
|
||||
|
||||
@@ -337,6 +349,7 @@ class $AssetsIconsGen {
|
||||
|
||||
/// List of all assets
|
||||
List<SvgGenImage> get values => [
|
||||
activeFram,
|
||||
add,
|
||||
appBarInspection,
|
||||
arrowLeft,
|
||||
@@ -356,6 +369,7 @@ class $AssetsIconsGen {
|
||||
chicken,
|
||||
chicken2,
|
||||
chickenHouse,
|
||||
chickenInspection,
|
||||
chickenMapMarker,
|
||||
chickenPattern,
|
||||
clipboardEye,
|
||||
@@ -381,6 +395,7 @@ class $AssetsIconsGen {
|
||||
empty,
|
||||
excelDownload,
|
||||
farm,
|
||||
farms,
|
||||
filter,
|
||||
filterOutline,
|
||||
gps,
|
||||
@@ -417,6 +432,7 @@ class $AssetsIconsGen {
|
||||
rasadNan,
|
||||
rasadToyor,
|
||||
receiptDiscount,
|
||||
registerKill,
|
||||
sale,
|
||||
scan,
|
||||
scanBarcode,
|
||||
@@ -500,6 +516,9 @@ class $AssetsRiveGen {
|
||||
class $AssetsVecGen {
|
||||
const $AssetsVecGen();
|
||||
|
||||
/// File path: assets/vec/active_fram.svg.vec
|
||||
SvgGenImage get activeFramSvg => const SvgGenImage.vec('assets/vec/active_fram.svg.vec');
|
||||
|
||||
/// File path: assets/vec/add.svg.vec
|
||||
SvgGenImage get addSvg => const SvgGenImage.vec('assets/vec/add.svg.vec');
|
||||
|
||||
@@ -557,6 +576,9 @@ class $AssetsVecGen {
|
||||
/// File path: assets/vec/chicken_house.svg.vec
|
||||
SvgGenImage get chickenHouseSvg => const SvgGenImage.vec('assets/vec/chicken_house.svg.vec');
|
||||
|
||||
/// File path: assets/vec/chicken_inspection.svg.vec
|
||||
SvgGenImage get chickenInspectionSvg => const SvgGenImage.vec('assets/vec/chicken_inspection.svg.vec');
|
||||
|
||||
/// File path: assets/vec/chicken_map_marker.svg.vec
|
||||
SvgGenImage get chickenMapMarkerSvg => const SvgGenImage.vec('assets/vec/chicken_map_marker.svg.vec');
|
||||
|
||||
@@ -632,6 +654,9 @@ class $AssetsVecGen {
|
||||
/// File path: assets/vec/farm.svg.vec
|
||||
SvgGenImage get farmSvg => const SvgGenImage.vec('assets/vec/farm.svg.vec');
|
||||
|
||||
/// File path: assets/vec/farms.svg.vec
|
||||
SvgGenImage get farmsSvg => const SvgGenImage.vec('assets/vec/farms.svg.vec');
|
||||
|
||||
/// File path: assets/vec/filter.svg.vec
|
||||
SvgGenImage get filterSvg => const SvgGenImage.vec('assets/vec/filter.svg.vec');
|
||||
|
||||
@@ -740,6 +765,9 @@ class $AssetsVecGen {
|
||||
/// File path: assets/vec/receipt_discount.svg.vec
|
||||
SvgGenImage get receiptDiscountSvg => const SvgGenImage.vec('assets/vec/receipt_discount.svg.vec');
|
||||
|
||||
/// File path: assets/vec/registerKill.svg.vec
|
||||
SvgGenImage get registerKillSvg => const SvgGenImage.vec('assets/vec/registerKill.svg.vec');
|
||||
|
||||
/// File path: assets/vec/sale.svg.vec
|
||||
SvgGenImage get saleSvg => const SvgGenImage.vec('assets/vec/sale.svg.vec');
|
||||
|
||||
@@ -805,6 +833,7 @@ class $AssetsVecGen {
|
||||
|
||||
/// List of all assets
|
||||
List<SvgGenImage> get values => [
|
||||
activeFramSvg,
|
||||
addSvg,
|
||||
appBarInspectionSvg,
|
||||
arrowLeftSvg,
|
||||
@@ -824,6 +853,7 @@ class $AssetsVecGen {
|
||||
chickenSvg,
|
||||
chicken2Svg,
|
||||
chickenHouseSvg,
|
||||
chickenInspectionSvg,
|
||||
chickenMapMarkerSvg,
|
||||
chickenPatternSvg,
|
||||
clipboardEyeSvg,
|
||||
@@ -849,6 +879,7 @@ class $AssetsVecGen {
|
||||
emptySvg,
|
||||
excelDownloadSvg,
|
||||
farmSvg,
|
||||
farmsSvg,
|
||||
filterSvg,
|
||||
filterOutlineSvg,
|
||||
gpsSvg,
|
||||
@@ -885,6 +916,7 @@ class $AssetsVecGen {
|
||||
rasadNanSvg,
|
||||
rasadToyorSvg,
|
||||
receiptDiscountSvg,
|
||||
registerKillSvg,
|
||||
saleSvg,
|
||||
scanSvg,
|
||||
scanBarcodeSvg,
|
||||
|
||||
24
packages/core/lib/utils/first_digit_decimal_formatter.dart
Normal file
24
packages/core/lib/utils/first_digit_decimal_formatter.dart
Normal file
@@ -0,0 +1,24 @@
|
||||
import 'package:flutter/services.dart';
|
||||
|
||||
class FirstDigitDecimalFormatter extends TextInputFormatter {
|
||||
@override
|
||||
TextEditingValue formatEditUpdate(TextEditingValue oldValue, TextEditingValue newValue) {
|
||||
String digit = newValue.text.replaceAll(RegExp(r'[^0-9]'), "");
|
||||
late String res;
|
||||
|
||||
if (digit.isEmpty) {
|
||||
return newValue.copyWith(text: '');
|
||||
}
|
||||
|
||||
if (digit.length == 1) {
|
||||
res = digit;
|
||||
} else {
|
||||
res = '${digit[0]}.${digit.substring(1)}';
|
||||
}
|
||||
|
||||
return TextEditingValue(
|
||||
text: res,
|
||||
selection: TextSelection.collapsed(offset: res.length),
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -14,3 +14,4 @@ export 'number_utils.dart';
|
||||
export 'parser.dart';
|
||||
export 'route_utils.dart';
|
||||
export 'separator_input_formatter.dart';
|
||||
export 'first_digit_decimal_formatter.dart';
|
||||
|
||||
@@ -953,10 +953,10 @@ packages:
|
||||
dependency: "direct dev"
|
||||
description:
|
||||
name: json_serializable
|
||||
sha256: "3f2913b7c2430afe8ac5afe6fb15c1de4a60af4f630625e6e238f80ba4b80cbd"
|
||||
sha256: "33a040668b31b320aafa4822b7b1e177e163fc3c1e835c6750319d4ab23aa6fe"
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "6.11.0"
|
||||
version: "6.11.1"
|
||||
latlong2:
|
||||
dependency: "direct main"
|
||||
description:
|
||||
|
||||
Reference in New Issue
Block a user