Skip to content

Commit 03d375b

Browse files
authored
patch: Enhance DuitDataSource with new methods (#54)
* feat: Enhance DuitDataSource with new date and time handling methods - Added methods to retrieve and parse DateTime, DatePickerEntryMode, DatePickerMode, Locale, TimeOfDay, and TimePickerEntryMode from JSON. - Implemented lookup tables for DatePickerEntryMode, DatePickerMode, TimePickerEntryMode, and Orientation. - Updated tests to cover new functionality and ensure correct parsing and default value handling. - Introduced locale and orientation properties in FlutterPropertyKeys for better configuration management. * feat: Enhance DuitDataSource with new properties and methods for scroll behavior, multitouch drag strategy, target platform, and drag devices - Added methods to retrieve and parse ScrollBehavior, MultitouchDragStrategy, TargetPlatform, and drag devices from JSON. - Introduced lookup tables for PointerDeviceKind and MultitouchDragStrategy. - Updated FlutterPropertyKeys to include new keys for scroll behavior, multitouch drag strategy, platform, drag devices, and pointer axis modifiers. - Enhanced tests to cover new functionality and ensure correct parsing and default value handling. * Lint fixes * wip * feat: Add iconData method to DuitDataSource for enhanced icon handling - Introduced iconData method to retrieve and parse IconData from JSON, supporting direct IconData, string identifiers, and map structures. - Added a new generated icon lookup table for efficient IconData resolution. - Updated tests to validate the new iconData functionality and ensure correct behavior across various input scenarios. - Created a script to generate the icon lookup table from Flutter's material/icons.dart. * wip
1 parent 2f40652 commit 03d375b

8 files changed

Lines changed: 11172 additions & 7 deletions

File tree

Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,7 @@ lint:
1717
.PHONY: format
1818

1919
format:
20-
fvm dart format .
20+
fvm dart format .
21+
22+
gen icons:
23+
fvm dart run tool/generate_icon_lookup.dart

0 commit comments

Comments
 (0)