sm_widget library
Classes
- BackgroundTextSpan
- ExtendedEditableTextState
- ExtendedTextLibraryUtils
- ExtendedWidgetSpan
- create by zmtzawqlp on 2019/7/10
- ImageSpan
- MAlertDialog
- MAppBar
- MBottomSheet
- MButton
- MButtonStyle
- maximumSize 最大尺寸 !: 注意 如果设置了 maximumSize 不设置 minimumSize, 并且 maximumSize 小于 minimumSize, 则会导致约束冲突. !: BoxConstraints has both width and height constraints non-normalized.
- MCircleAvatar
- MContainer
- MCupertinoActionSheet
- MCupertinoActionSheetAction
- MCupertinoAlertDialog
- MCupertinoDialogAction
- MCupertinoPopupSurface
- MDialog
- MElevatedButton
- MExpandable
-
Shows either the expanded or the collapsed child depending on the state.
The state is determined by an instance of MExpandableController provided by
ScopedModel
- MExpandableButton
- Toggles the state of MExpandableController when the user clicks on it.
- MExpandableController
-
Controls the state (expanded or collapsed) of one or more
Expandable
. The controller should be provided toExpandable
via MExpandableNotifier. - MExpandableIcon
-
An down/up arrow icon that toggles the state of MExpandableController when the user clicks on it.
The model is accessed via
ScopedModelDescendant
. - MExpandableNotifier
-
Makes an MExpandableController available to the widget subtree.
Useful for making multiple
Expandable
widgets synchronized with a single controller. - MExpandablePanel
- A configurable widget for showing user-expandable content with an optional expand button.
- MExpandableTheme
- MExpandableThemeData
- MFilledButton
- MIconButton
- MImage
- MImageProvider
- MInputDecoration
- MListTile
-
ModalMBottomSheetRoute<
T> - MOutlinedButton
- MRichText
- MScaffold
- MScrollOnExpand
- Ensures that the child is visible on the screen by scrolling the outer viewport when the outer MExpandableNotifier delivers a change event.
- MSelectableText
- MStrutStyle
- MText
- MTextField
- MTextSpan
- MTextStyle
- RegExpSpecialText
- RegExpSpecialTextSpanBuilder
- SMWidgetAppTranslation
- SpecialText
- SpecialTextSpan
- create by zmtzawqlp on 2019/4/30
- SpecialTextSpanBuilder
- TextInputBinding
- void main() { TextInputBinding(); runApp(const MyApp()); }
- TextInputFocusNode
-
The FocusNode to be used in
TextInputBindingMixin
- TextOverflowWidget
- TextPainterHelper
- WidgetSpanSize
Enums
- MBoxShape
- MButtonIconAlignment
- MButtonMode
- MExpandablePanelBodyAlignment
- Determines vertical alignment of the body
- MExpandablePanelHeaderAlignment
- Determines the alignment of the header relative to the expand icon
- MExpandablePanelIconPlacement
- Determines the placement of the expand/collapse icon in MExpandablePanel
- MExpandableTransition
- MImageClipMode
- MImageRenderMethodForWeb
- MInputBorderStyle
- TextOverflowAlign
- TextOverflowClearType
- https://github.com/fluttercandies/extended_text/issues/118 Clear the text under TextOverflowWidget default: Paint()..BlendMode.clear Canvas.clipRect BlendMode.clear will make BackdropFilter to be black background
- TextOverflowPosition
- The position which TextOverflowWidget should be shown https://github.com/flutter/flutter/issues/45336
Mixins
- SpecialInlineSpanBase
- create by zmtzawqlp on 2019/7/10
Extensions
Typedefs
- MErrorListener = void Function(Object exception, StackTrace? stackTrace)
- MErrorWidget = Widget Function(BuildContext context, String url, Object error)
- MExpandableBuilder = Widget Function(BuildContext context, Widget collapsed, Widget expanded)
-
MImageErrorProviderBuilder
= ImageProvider<
Object> Function(BuildContext context, Object error, StackTrace? stackTrace) - PaintBackground = bool Function(BackgroundTextSpan backgroundTextSpan, Canvas canvas, Offset offset, TextPainter? painter, Rect rect, {Offset? endOffset, TextPainter? wholeTextPainter})
- if you don't want use default, please return true. endOffset is the text top-right Offfset allTextPainter is the text painter of extended text. painter is current background text painter
- SpecialTextGestureTapCallback = void Function(dynamic parameter)
- create by zmtzawqlp on 2019/6/5