About this project
jh_flutter_demo is a Flutter application intended as a collection of commonly used UI patterns, reusable components, and utility code. The documented environment uses Flutter 3.38.2 and Dart 3.10.0, and the project is made available under the BSD 2-Clause License. An online preview is provided, and the README notes a demo password of 123456.
The project covers application foundation work such as base classes, font/color/layout/string macros, Dio-based network request wrapping, API and data management, modular route management, screen adaptation, dark mode, theme switching, GetX-based internationalization, and Material 3 adaptation.
Reusable components include base AppBar, tab bar, refresh, and WebView widgets; dialogs, toasts, bottom sheets, and custom dialogs; date/time and single- or multi-column pickers; cascading pickers with array/tree data and search; form input, selection, settings, and login cells; top tab bars; gradient and multiline AppBars; popup menus; countdown buttons; update dialogs; WeChat-style photo/video picking and browsing; nine-grid image displays; empty-data and network-error states; skeleton screens; carousels; sliding menus; tags; collapse views; and shake, zoom, translate, wave, and Lottie animations.
Utility functionality includes AES, MD5, and Base64 operations; AES-encrypted local storage; network monitoring; device and screen information; resource and status-bar helpers; QR code scanning and generation; route navigation; page lifecycle listening; date formatting; string and random-number helpers; debounce and throttle; app-exit/store-jumping helpers; and navigation to third-party map apps.
The UI examples cover paging and grouped ListViews, sticky headers, GridViews, charts, badges, search interfaces, tag-cloud animation, swipe actions, city selection, drag-and-drop sorting, rich text, login/register flows, version-update interfaces, handwritten signatures, and multiple WeChat-inspired pages including the home page, contacts, discovery, personal center, friends circle, and image browsing. Packaged components and utilities are located in the jh_common folder.
The README notes that debug mode may feel janky and recommends release builds, with flutter build ios and flutter build apk given as platform examples. It also records version updates tied to Flutter and Dart releases, along with Android and iOS deployment-target changes.
Comments
0 Rating appears after 10 ratings
Sign in to join the discussion.