junny_widget library

Classes

AddressPicker
AddressPicker: 用于选择和管理地址信息的组件
AnimationParam
advanced usage:
ArcClipper
AttachAdjustParam
AttachParam
CalendarBuilders<T>
Class containing all custom builders for TableCalendar.
CalendarStyle
Class containing styling and configuration for TableCalendar's content.
CommonEmptyWidget
通用列表空页面
DateTimeNotifier
DateProvider is a ChangeNotifier that manages two DateTime objects: _selectedDate and _focusedDate. These dates can be null initially.
DateTimePicker
日期时间选择器组件 支持多种时间选择模式,允许自定义初始时间范围、语言代码等
DateTimeRangePicker
日期区间选择器组件 支持选择开始时间和结束时间,并处理各种初始状态
DaysOfWeekStyle
Class containing styling for TableCalendar's days of week panel.
DecadeView
展示每十年为一组用于选择年份的控件
ExpandableWidget
FlutterSmartDialog
FlutterSmartNotifyStyle
FoldableActions
可折叠操作按钮栏
HeaderStyle
Class containing styling and configuration of TableCalendar's header.
InkWrapper
水波纹点击控件
JunnyAppbar
JunnyDialogUtils
弹窗工具类
JunnyErrorWidget
错误界面
JunnyGlobalWidgetConfig
配置类:全局组件的统一配置入口
JunnyLoadingUtils
加载动画工具类
JunnyToastUtils
toast工具类
LabeledCheckbox
LabeledRadio<T>
LazyIndexedStack
A lazy-IndexedStack written by Alex Li 💙. it lazily build children only when they are first activated.
LoadingDialog
LoadingTransaction
加载动画事务
MonthView
用于展示并选择月份的控件
MultiClickGesture
NoScrollBehavior
PersistentHeaderBuilder
PlatformAlertDialog
PlatformProgressIndicator
Progress Indicator. Used in loading data.
PopUpMenus
弹窗菜单
PositionedOffset
Helper class containing data for internal Positioned widget.
PrimaryButton
系统主要的按钮
QuarterView
用于展示并选择季度的控件
RotateIcon
A widget representing a rotating expand/collapse button. The icon rotates 180 degrees when pressed, then reverts the animation on a second press. The underlying icon is Icons.expand_more.
RoundedUnderlineTabIndicator
Used with TabBar.indicator to draw a horizontal line below the selected tab.
ScreenAdaptation
ScreenAdaptationScope
SlidingTransition
Sliding
SmartConfigAttach
showAttach() global config
SmartConfigCustom
show() global config
SmartConfigLoading
showLoading() global config
SmartConfigNotify
show() global config
SmartConfigToast
showToast() global config
SmartDialog
SmartDialogController
SmartDialog Controller
TableCalendar<T>
Highly customizable, feature-packed Flutter calendar with gestures, animations and multiple formats.
TableCalendarBase
TapListener
ThemeButton
跟随系统色的按钮
TimePicker
TransparentPageRoute<T>
透明的PageRoute
ValueListenableBuilder2<A, B>
WatermarkPainter
水印绘制器
WheelPicker<T>
滚轮选择器

Enums

ArcDirection
AvailableGestures
Gestures available for the calendar.
CalendarFormat
Formats that the calendar can display.
DateTimeSelectedState
DateTimeSelectedState is an enum that represents the state of the date and time picker.
FoldableMenuAnchorType
折叠菜单锚点类型
LabelPosition
文字控件方向
LoadingStatus
加载状态枚举
NotifyType
Prompt dialog to distinguish different types of showNotify
PickerMode
选择器模式
RangeSelectionMode
Modes that range selection can operate in.
ScreenAdaptationScaleType
none: 不做缩放 auto: 竖屏按宽缩放,横屏(宽 >= 高 * 1.1)不缩放 width: 按宽缩放
SmartAllDialogType
dialog type
SmartAnimationType
Different animation types can be set for dialog (appearing and disappearing)
SmartAttachAlignmentType
The alignment effect when the attach dialog selects different alignment properties
SmartAwaitOverType
The type of dialog await ending
SmartBackType
SmartInitType
The initialization type can be dynamically set, which is suitable for some special scenarios; for example: for a desktop application, initializing the global only needs to initialize the Attach Dialog, and initializing a block area does not need to initialize the Attach Dialog
SmartMaskTriggerType
The type of timing that is triggered when the mask is clicked
SmartNonAnimationType
For different scenes, the pop-up animation can be dynamically closed.
SmartStatus
SmartToastType
StartingDayOfWeek
Days of the week that the calendar can start with.
TimePickerMode
时间选择模式

Extensions

TimePickerModeExt on TimePickerMode
时间选择模式扩展

Functions

getWeekdayNumber(StartingDayOfWeek weekday) int
Returns a numerical value associated with given weekday.
isSameDay(DateTime? a, DateTime? b) bool
Checks if two DateTime objects are the same day. Returns false if either of them is null.
normalizeDate(DateTime date) DateTime
Returns date in UTC format, without its time part.

Typedefs

DayBuilder = Widget? Function(BuildContext context, DateTime day)
Signature for a function that creates a widget for a given day.
FlutterSmartLoadingBuilder = Widget Function(String msg)
FlutterSmartStyleBuilder = Widget Function(Widget child)
FlutterSmartToastBuilder = Widget Function(String msg)
FocusedDayBuilder = Widget? Function(BuildContext context, DateTime day, DateTime focusedDay)
Signature for a function that creates a widget for a given day. Additionally, contains the currently focused day.
HighlightBuilder = Widget? Function(BuildContext context, DateTime day, bool isWithinRange)
Signature for a function that creates a background highlight for a given day.
MarkerBuilder<T> = Widget? Function(BuildContext context, DateTime day, List<T> events)
Signature for a function that creates an event marker for a given day. Contains a list of events associated with that day.
菜单项按钮参数
OnDaySelected = void Function(DateTime selectedDay, DateTime focusedDay)
Signature for onDaySelected callback. Contains the selected day and focused day.
OnRangeSelected = void Function(DateTime? start, DateTime? end, DateTime focusedDay)
Signature for onRangeSelected callback. Contains start and end of the selected range, as well as currently focused day.
ScreenAdaptationChildBuilder = Widget Function(BuildContext context, bool scaled)
SingleMarkerBuilder<T> = Widget? Function(BuildContext context, DateTime day, T event)
Signature for a function that creates a single event marker for a given day. Contains a single event associated with that day.
TextFormatter = String Function(DateTime date, dynamic locale)
Signature for a function returning text that can be localized and formatted with DateFormat.
WheelPickerActionBarBuilder<T> = Widget Function(List<T?>? dataGetter())
WheelPickerTitleBuilder<T> = String Function(T t)