flutter_icu_common library

Classes

CachedNetworkImage
Image widget to show NetworkImage with caching functionality.
CachedNetworkImageProvider
An ImageProvider to load images from the network with caching functionality.
Calculator
A Calculator.
DateFormats
一些常用格式参照。可以自定义格式,例如:'yyyy/MM/dd HH:mm:ss','yyyy/M/d HH:mm:ss'。 格式要求 year -> yyyy/yy month -> MM/M day -> dd/d hour -> HH/H minute -> mm/m second -> ss/s
DateUtil
Date Util.
DirectoryUtil
DirectoryUtil。
DownloadProgress
Progress of the file that is being downloaded from the originalUrl.
EncryptUtil
Encrypt Util.
EnInfo
EnNormalInfo
ICUBaseFunction
ICUBaseInnerWidget
通常是和 viewpager 联合使用 , 类似于Android 中的 fragment 不过生命周期 还需要在容器父类中根据tab切换来完善
ICUBaseInnerWidgetState<T extends ICUBaseInnerWidget>
ICUBaseWidget
ICUBaseWidgetState<T extends ICUBaseWidget>
ICUCard
卡片
ICUCommonCell
ICUCommonUtil
ICUConstant
ICUGlobalConfiguration
ICUHexColor
ICUImageUtils
ICULoadAssetImage
加载本地资源图片
ICULoadData
ICULoadImage
图片加载(支持本地与网络图片)
ICUResultData
ICUSafeMap
ImageUtil
Image Util.
JsonUtil
Json Util.
LogUtil
Log Util.
MoneyUtil
Money Util.
MultiImageStreamCompleter
An ImageStreamCompleter with support for loading multiple images.
NumUtil
Num Util.
ObjectUtil
Object Util.
RegexUtil
Regex Util.
ScreenUtil
Screen Util.
SpUtil
SharedPreferences Util.
TextUtil
Text Util.
TimelineInfo
Timeline information configuration. Timeline信息配置.
TimelineUtil
TimelineUtil
TimerUtil
TimerUtil.
WidgetUtil
Widget Util.
ZhInfo
ZhNormalInfo

Properties

ID_CARD_PROVINCE_DICT List<String>
id card province dict.
read / write
MONTH_DAY Map<int, int>
month->days.
read / write
timeDilation double
Slows down animations by this factor to help in development.
read-only

Functions

setDesignWHD(double w, double h, {double density = 3.0}) → void
配置设计稿尺寸 屏幕 宽,高,密度。 Configuration design draft size screen width, height, density.
setInitDir({bool initTempDir, bool initAppDocDir, bool initAppSupportDir, bool initStorageDir}) → void
配置初始化Directory。
setLocaleInfo(String locale, TimelineInfo timelineInfo) → void
add custom configuration.

Enums

DayFormat
(xx)Configurable output. (xx)为可配置输出.
ImageRenderMethodForWeb
Currently there are 2 different ways to show an image on the web with both their own pros and cons, using a custom HttpGet or an HTML Image element mentioned here on a GitHub issue.
MoneyFormat
MoneyUnit
PageStatus
界面状态

Typedefs

ErrorListener = void Function()
Function which is called after loading the image failed.
ImageWidgetBuilder = Widget Function(BuildContext context, ImageProvider<Object> imageProvider)
Builder function to create an image widget. The function is called after the ImageProvider completes the image loading.
LoadingErrorWidgetBuilder = Widget Function(BuildContext context, String url, dynamic error)
Builder function to create an error widget. This builder is called when the image failed loading, for example due to a 404 NotFound exception.
OnTimerTickCallback = void Function(int millisUntilFinished)
timer callback.(millisUntilFinished 毫秒).
PlaceholderWidgetBuilder = Widget Function(BuildContext context, String url)
Builder function to create a placeholder widget. The function is called once while the ImageProvider is loading the image.
ProgressIndicatorBuilder = Widget Function(BuildContext context, String url, DownloadProgress progress)
Builder function to create a progress indicator widget. The function is called every time a chuck of the image is downloaded from the web, but at least once during image loading.