jh_flutter_demo

iotjinBSD-2-Clause活跃维护

一套 Flutter 常用效果与通用组件的示例集合,封装了弹窗、表单、图表、暗黑模式等组件和工具类,方便直接复用到自己的 App 里。

flutter项目- 实现一些常用效果、封装通用组件和工具类

v3.32.0发布于 2026-06-23 00:43 UTC1,106star238fork同步于 2026-11-07 07:33 UTC

怎么上手

由 README 提炼,执行前请确认
flutter pub get
flutter run
硬件要求按 README 说明

README 未说明,仅要求 Flutter 3.38.2、Dart 3.10.0 环境

下载:源码 zip·GitHub Releases(安装包)本站不镜像安装包

项目说明

由 README 自动翻译提炼

Flutter 常用 UI 效果与通用组件工具库,拿来即用少造轮子

一套 Flutter 常用效果与通用组件的示例集合,封装了弹窗、表单、图表、暗黑模式等组件和工具类,方便直接复用到自己的 App 里。

核心能力

  • 封装 BaseAppBar、BaseTabBar、BaseRefreshView 等基础组件
  • 提供 JhForm 表单、级联选择器、微信风格图片视频选择器
  • Dio 网络请求封装与 API 接口、路由模块化管理
  • AES/MD5/Base64 加密与本地数据 AES 加密存储
  • 支持暗黑模式、主题切换、屏幕适配与 GetX 国际化

容易踩的坑

debug 模式会有卡顿属正常,需打 release 包才有流畅体验;iOS14 真机运行崩溃可改用 flutter run --release;示例登录密码为 123456

内容由模型根据 README 生成,可能不完整或不准确,以官方文档为准。看原文 README

最近发版

5 个版本v3.32.0
  1. v3.32.0最新正式版2026-06-23 · 2026-06-23 00:43 UTC

    What's Changed

    • Update Flutter SDK (3.32.0) and dependent libraries
    • Android 16 adaptation ,Java11 to Java17
  2. v3.27.02026-01-27 · 2026-01-27 08:01 UTC
    查看更新说明

    What's Changed

    • Update Flutter SDK (3.27.0) and dependent libraries
    • Update Android Gradle plugins syntax
    • Add JhMediaBrowser
  3. v3.22.02025-03-11 · 2025-03-11 03:13 UTC
    查看更新说明

    What's Changed

    • Update Flutter SDK (3.22.0) and dependent libraries
    • Update Gradle plugins syntax
  4. v3.16.02024-09-11 · 2024-09-11 13:50 UTC
    查看更新说明

    What's Changed

    • Update Flutter SDK (3.16.0) and dependent libraries
    • Update component and tool classes(jh_common folder)
    • Add Internationalization (use GetX)
    • Material3 adaptation
    • Android supports flavors
    • min iOS to 12
  5. v3.13.02024-03-25 · 2024-03-25 02:20 UTC
    查看更新说明

    What's Changed

    • Update Flutter SDK (3.13.0) and dependent libraries
    • Update component and tool classes(jh_common folder)
    • Add mobile_scanner
    • Update API

用户点评

登录用户的真实使用记录,可按版本和硬件筛选
共 0 条

    还没有人点评。第一个说出真实体验的人最有价值。

    README 原文

    未翻译

    jh_flutter_demo

    Flutter version Dart version License GitHub release (latest by date including pre-releases)

    English | 简体中文

    A new Flutter project - implement common UI effects, encapsulate components and utils.

    pwd:123456

    The code is updated irregularly.

    Online preview

    https://iotjin.github.io/jh_flutter_demo

    Project environment

    • Flutter version 3.38.2
    • Dart version 3.10.0

    Some UI effects implemented

    • Common framework construction, common base class implementation
    • Macro Definitions for Font, Color, Frame, String, etc.
    • Dio network request encapsulation
    • API interface management and data management
    • Modularized management of routes
    • Screen adaptation
    • Dark Mode adaptation
    • Theme switch
    • Internationalization (GetX)
    • Material3 adaptation
    • Components
      • BaseAppBar、BaseTabBar、BaseRefreshView、BaseWebView
      • Dialogs (center、bottom、toast、dialog、custom dialogs)
      • Time、Date、single-column、multi-column and bottom single/multiple pickers
      • Cascading picker (multi-dimensional array or tree structure, supports search)
      • JhForm form input (single row、multi-row input style、select style、setting style、login style)
      • JhTopTabBar(navigation bar page switching)
      • Gradient color AppBar, multi-line title AppBar
      • Imitation of WeChat's upper-right corner pop-up box
      • Countdown button
      • APP update dialog
      • Picture/video picker based on WeChat UI (supports taking pictures and recording videos)
      • Picture/Video Browser
      • Taking photos, local image selection, nine-grid display, full-screen image viewing
      • Highlighting specified text in text
      • Empty data and network exceptions
      • Skeleton screen
      • Horizontal sliding menu (same effect as Pinduoduo homepage, Taobao My channel)
      • Carousel image(full screen, zoom)
      • Shake, zoom, translate animation
      • wave animation
      • lottie animation
      • tag view
      • collapse view
    • Utils
      • AES encryption/decryption, MD5 encryption, base64 encoding/decoding
      • Local data AES encrypted storage
      • Real-time network monitoring
      • Getting device information, screen information, and notch screen detection
      • Loading image resources, color settings
      • Status bar settings
      • QR code scanning and generation
      • Navigation route jumping
      • Listening for page appearance or disappearance
      • Time format conversion
      • String processing
      • Random numbers
      • Exit the APP/jump to the app store
      • Debounce / Throttle
      • Jump tripartite map APP navigation
    • UI related
      • ListView related (paging up/down refresh, grouping up/down refresh, group sticking)
      • GridView related
      • Chart related (dynamic loading of multiple charts, gradient line charts, mixed line and bar charts)
      • Badges
      • AppBar search and header search
      • Animation (tag cloud)
      • List slide button
      • City selection list
      • ListView/GridView drag and drop sorting
      • Rich text
      • log in / Register
      • Version new features
      • Checking for updates
      • Imitation of WeChat UI (home page, address book, discovery, and personal center, etc.)
      • AppBar image pull-down zoom and gradient effect (WeChat Sports Ranking List, personal homepage)
      • WeChat friends circle and image browsing
      • Cross-slide (personal center effect)
      • Handwritten signature (signature / hand_signature libraries)

    Note:

    • Packaged components and utils in the jh_common folder
    • For more, please download the project to view

    Precautions

    • There will be some freezes in debug mode, which is normal. A good experience requires a release package. iOS can execute the command flutter build ios to create a release version. Android can execute the command flutter build apk to create a release version.
    • iOS14 crashes when running on a real machine, which can be run on a real machine through flutter run --release

    Update record

    * v3.38.2  - Update pubspec library and flutter version(Flutter 3.38.2,Dart 3.10.0),iOS minimum build version changed to 13.0 , Android build environment upgrade
    * v3.32.0  - Update pubspec library and flutter version(Flutter 3.32.0,Dart 3.8.0),Android 16 adaptation ,Java11 to Java17
    * v3.27.0  - Update pubspec library and flutter version(Flutter 3.27.0,Dart 3.6.0),Android 15 adaptation
    * v3.22.0  - Update pubspec library and flutter version(Flutter 3.22.0,Dart 3.4.0),Android 14 adaptation
    * v3.16.0  - Update pubspec library and flutter version(Flutter 3.16.0,Dart 3.2.0),iOS minimum build version changed to 12.0 , Material3 adaptation
    * v3.13.0  - Update pubspec library and flutter version(Flutter 3.13.0,Dart 3.1.0)
    * v3.10.0  - Update pubspec library and flutter version(Flutter 3.10.0,Dart 3.0.0)
    * v3.7.0  - Update pubspec library and flutter version(Flutter 3.7.0,Dart 2.19.0)
    * v3.3.0  - Update pubspec library and flutter version(Flutter 3.3.0,Dart 2.18.0),iOS minimum build version changed to 11.0
    * v3.0.0  - Update pubspec library and flutter version(Flutter 3.0.0,Dart 2.17.0)
    * v2.10.1 - Dark Mode adaptation
    * v2.10.0 - Update pubspec library and flutter version(Flutter 2.10.0,Dart 2.16.0)
    * v2.0.0  - Update Flutter SDK( 2.0.3 )and pubspec library
    * v1.0.0  - environment:Flutter version 1.22.3,Dart version 2.10.3
    

    Appreciate the support

    • If you think it's good, or my open source project is helpful to you, you can click "Star" in the upper right corner to support it. Your support is my motivation, thank you 🙂
    • You can also scan the QR code below, invite the author to have a cup of milk tea 🧋

    Preview

    Some page effects are as follows:

    WeChat UI:

    Licenses

    
    BSD 2-Clause License
    
    Copyright (c) 2020, iotjin
    All rights reserved.
    
    Redistribution and use in source and binary forms, with or without
    modification, are permitted provided that the following conditions are met:
    
    1. Redistributions of source code must retain the above copyright notice, this
       list of conditions and the following disclaimer.
    
    2. Redistributions in binary form must reproduce the above copyright notice,
       this list of conditions and the following disclaimer in the documentation
       and/or other materials provided with the distribution.
    
    THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
    AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
    IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
    DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
    FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
    DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
    SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
    CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
    OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
    OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.