sunny_essentials library
Classes
- AppBarTitle
- AutoLayout
- Body0Text
- Body1Text
- Body2Text
- Body3Text
- CupertinoVisualStyle
- DividingLine
- ErrorText
- Form0Theme
- Headline3Text
- Headline4Text
- HeroText
- HorizontalSpace
- HoverEffect
- InputText
- LargeTitle
- Layout
- LinkText
- ModalScrollPhysics
- NormalText
- PageSectionHeaderText
- PlaceholderText
- PlatformCard
- PlatformCardArgs
- PlatformCardTheme
- PlatformListTile
- PlatformNetworkImage
- PrimaryText
- Provided
-
ProvidedBox<
T> - A container that sits at the top of the provider tree that can be updated from within the tree.
- Px
- RawSunnyColors
- RichTextBuilder
- Allows for building rich text using the known styles
- SecondaryText
-
SimpleSliverList<
W> - StyledText
- SunnyColorData
- Implementation of color spec.
- SunnyColors
- SunnyMargin
- SunnyPad
- SunnySpacing
- List of font styles based on reliveit naming conventions. This can be easily applied to a material or cupertino theme.
- SunnyTextTheme
- List of font styles based on reliveit naming conventions. This can be easily applied to a material or cupertino theme.
- Tappable
- TertiaryText
- TextWidgets
- Themes
- TileSubtitle
- TileTitle
- TitleText
- VerticalSpace
Enums
Mixins
Extensions
- AutoLayoutBuilderExt on AutoLayout
- AutoLayoutConversion on MainAxisAlignment
- AutoLayoutSingleExt on AutoLayout
- BorderSideExtensions on BorderSide
- BrightnessExt on Brightness
- BuildContextProvidesExtension on BuildContext
- BuildContextRichText on BuildContext
- BuildContextThemes on BuildContext
- ColorResolver on Color
- ColorToWidgetExt on Color
- CupertinoDynamicColorToWidgetExt on CupertinoDynamicColor
- CupertinoVisualStyleBuildContext on BuildContext
- RichTextBuilderTrippiExt on RichTextBuilder
- SizedBoxExt on SizedBox
- SizeExtension on num
- SunnyColorExt on SunnyColors
- SunnySpacingToEdgeInsets on SunnySpacing
- SunnyWidgetHeroExtensions on Widget
- TextStyleColorExt on TextStyle
- we run points calculations off this
- TextStyleMergeExt on TextStyle?
- TextStylePlatformExt on TextStyle
- TextStyleWidgetBuilderExt on TextStyle
- TextThemeApplyEachExt on TextTheme
- ThemesExt on Themes
-
WidgetListExtensions
on List<
Widget> - WidgetSpacingExt on Widget
Constants
- body1Height → const double
- body1Size → const double
- body1Spacing → const double
- body2Height → const double
- body2Size → const double
- body2Spacing → const double
- body3Height → const double
- body3Size → const double
- body3Spacing → const double
- dividingLine → const DividingLine
- doubleHorizontalSpace → const HorizontalSpace
- emptyBox → const SizedBox
- expandedBox → const Expanded
- heroSpacing → const double
- horizontalShim → const HorizontalSpace
- horizontalSpace → const HorizontalSpace
- input0Height → const double
- input0Size → const double
- input0Spacing → const double
- mediumWeight → const FontWeight
- noBorder → const Border
- primaryLetterSpacing → const double
- sliverEmptyBox → const SliverToBoxAdapter
- sliverLoader → const SliverFillRemaining
- sliverSpinner → const SliverFillRemaining
- sliverSpinnerFn → const Widget Function()
- verticalShim → const VerticalSpace
- verticalSpace → const VerticalSpace
- wideLetterSpacing → const double
Properties
- defaultDarkTheme → ThemeData
-
final
- defaultFontFamily ↔ String
-
getter/setter pair
- defaultLightTheme → ThemeData
-
final
- platformBrightness → Brightness
-
no setter
- sunnyColors → SunnyColors
-
no setter
- sunnySpacing → SunnySpacing
-
no setter
- sunnyText → SunnyTextTheme
-
no setter
Functions
-
assumeWidget(
BuildContext context, dynamic item) → Widget? -
buildSliverBox(
WidgetBuilder builder) → WidgetBuilder -
centerColumn(
Iterable< Widget> children, {Color? color}) → Widget -
centerRow(
Iterable< Widget> children) → Widget -
column(
Iterable< Widget> children, {Color? color, WidgetWrapper? wrapper, Widget ifEmpty()?}) → Widget -
consume<
T> (BuildContext context, [void exec(T value)?]) → T? -
divide(
Iterable< Widget> widgets, Widget? wrapped) → List<Widget> -
form0Theme(
Themes themes, Brightness brightness) → ThemeData -
hpad(
Widget child, [bool white = true]) → SunnyPad -
pad(
Widget child) → SunnyPad -
PlatformNetworkImageProvider(
dynamic url) → ImageProvider< Object> -
Reprovide<
T> (BuildContext context, {bool listen = true, required Widget child}) → Widget -
richTextBuilder(
BuildContext context, RichTextBuild build) → Widget -
richTextInvertedBuilder(
BuildContext context, void build(RichTextBuilder builder)) → Widget -
row(
Iterable< Widget> children) → Widget -
shim(
Widget child) → SunnyPad -
SingleLineText(
String? text, {TextAlign? alignment, TextStyle? style}) → Text? -
sizeExtensions(
) → void -
sliverBox(
Widget widget, [bool wrap = true]) → Widget -
sliverBoxes(
Iterable< Widget> widgets) → List<Widget> -
sliverLoaderFn(
) → Widget -
slivers(
{Widget? child}) → Widget -
spaced(
{required List< Widget> children, EdgeInsets? space}) → List<Widget> -
stack(
Iterable< Widget> children, {AlignmentGeometry? alignment}) → Widget -
tappable<
R> (Widget child, {FutureOrTappableCallback? onTap, Key? key, double pressOpacity = 1.0, BuildContext? context, String? routeName, dynamic arguments, void callback(R? result)?}) → Widget - Enforces HitTest.opaque and removes parameters
-
textOrNull(
dynamic txt, {TextAlign? alignment, TextStyle? style, Color? color, bool wrap = true, int? maxLines}) → Widget? -
verticalSpacer(
double size) → Widget -
vpad(
Widget child, [bool white = true]) → SunnyPad -
wpad(
Widget child) → SunnyPad -
wrap(
{Iterable< Widget> ? children, double runspacing = 5, double spacing = 10}) → Widget
Typedefs
-
FutureBuildCallback<
T> = FutureOr< T> Function(BuildContext context) -
FutureOrTappableCallback<
T> = FutureOr< T> Function() -
FutureTappableCallback<
T> = FutureOr< T> Function(BuildContext context) - HoverBuilder = Widget Function(bool isHover)
- LayoutConfigure = void Function(AutoLayout container)
- LongPressCallback = FutureOr Function(BuildContext context)
- RichTextBuild = void Function(RichTextBuilder builder)
-
SliverWidgetBuilder<
T> = Widget? Function(BuildContext context, T item) - StyleAdjuster = TextStyle Function(TextStyle theme)
- StyleExtractor = TextStyle? Function(TextTheme theme)
- ThemeDataBuilder = ThemeData Function(Brightness brightness, TextStyle inputStyle, TextStyle placeholder1)
- WidgetWrapFn = Widget Function(WidgetBuilder builder)
- WidgetWrapper = Widget Function(Widget widget)