flutter_extended library

Classes

ColorHex
A utility class to create a Color from a hex string.
ExtendedAlertDialog
A customizable AlertDialog with optional title, message, and action buttons. Supports styling and centering text, as well as custom colors for confirm/cancel buttons.
FlutterExtended
Global configuration for flutter_extended.
PageTransition<T>
Page transition class extends PageRouteBuilder
ShimmerWidget
A widget that applies a shimmering loading effect to its child.
StyledText
A simple wrapper around Text widget that applies a predefined TextStyle.
Transitions

Enums

PageTransitionType
Transition enum

Properties

black → Color
final
blue → Color
final
brown → Color
final
cyan → Color
final
darkGray → Color
final
gray → Color
final
green → Color
final
lightGray → Color
final
magenta → Color
final
orange → Color
final
purple → Color
final
red → Color
Common predefined colors
final
shrink → Widget
Exposes an empty widget (SizedBox.shrink).
no setter
transparent → Color
final
TS → TextStyle
A base TextStyle instance to start chaining from.
final
white → Color
final
yellow → Color
final

Functions

falsy<T>(T? falsable, T fallback) → T
Returns fallback when falsable is null or considered falsy.
sliverListView({required int count, required Widget? builder(BuildContext context, int index)}) → Widget
Creates a SliverList with a fixed number of items.
sliverScrollView({required List<Widget> children, ScrollController? controller, Key? key}) → Widget
Creates a CustomScrollView from a list of widgets, automatically converting non-sliver widgets into SliverToBoxAdapter.
twoDigits(int n) → String

Typedefs

ChildBuilder = Widget Function(BuildContext context)
Builder function type for creating child widget
TransitionPageBuilder = Widget Function(BuildContext context, Animation<double> animation, Animation<double> secondaryAnimation)
This package allows you amazing transition for your routes Builder function type for creating the transition page