extensions_pro 1.0.32
extensions_pro: ^1.0.32 copied to clipboard
Extensions Pro simplifies your development process, making it faster and more efficient.
1.0.32 #
Breaking Change #
- Removed the Radio Button extension (
CustomRadioButton.radioButton()onWidget). Use Flutter's built-inRadio/RadioListTile, or keep your own copy of the removed implementation if you still need it.
1.0.31 #
New Extensions #
- Date —
isInPast,isInFuture,startOfWeek/endOfWeek,startOfMonth/endOfMonth,startOfYear/endOfYear,addWeeks()/subtractWeeks(),isSameMonth()/isSameYear(),weekOfYear,toRelativeDateLabel() - String —
toBase64()/fromBase64(),wordCount(),removeSpecialCharacters(),pluralize() - Int —
isPrime,toCurrencyString()(powered byintl),toPercentageString(),secondsToTimeString() - List —
swap(),groupBy(),rotate(); newflatten()onList<List<E>>andwhereNotNull()onList<E?> - Map (new) —
filterKeys(),filterValues()onMap<K, V>;toQueryString()onMap<String, dynamic>;isNullOrEmptyonMap<K, V>? - Validation —
isValidUsername(),isValidPinCode()(India),isValidIPAddress(),isValidName() - Navigation —
pushNamed(),popUntil(),canPop - Widget —
withAspectRatio(),withSafeArea(),withBackgroundColor(),withHero() - BuildContext (Screen & Theme) —
keyboardHeight,isKeyboardVisible - Color —
isLight/isDark,blend(),toMaterialColor() - Duration —
isZero,toHumanReadable() - Toast (new) —
showToast()onBuildContext, a lightweight overlay toast that doesn't require aScaffold - Clipboard (new) —
copyToClipboard()onString - Highlight (new) —
highlightOccurrences()onString, returnsTextSpans for search-match highlighting
Example App #
- Added Context & Utilities and Color Extensions pages
- Extended String, Number, Date & Time, List, Validation, and Widget pages with demos for every extension above
- Added a named route to demonstrate
context.pushNamed()
Tests #
- Added unit/widget tests for all extensions above (72 tests total)
1.0.30 #
New Extensions #
- Date —
timeAgo(relative time strings: "5m ago", "3d ago"),copyWith() - String —
toInitials(),toSlug(),equalsIgnoreCase() - List —
randomElement() - Color (new) —
toHex(),lighten(),darken()onColor;toColor()onStringfor parsing hex strings - Duration (new) —
toFormattedString()(mm:ss/HH:mm:ss) - BuildContext (Screen & Theme) —
orientation,isTablet,safeAreaPadding - BuildContext (Dialogs, new) —
showLoadingDialog(),hideLoadingDialog(),showConfirmDialog()
Tests #
- Added unit/widget tests for all extensions above
1.0.29 #
New Extensions #
- Date —
isWeekend,isWeekday,isLeapYear,daysInMonth,isSameDay() - String —
toTitleCase(),mask()for hiding sensitive data (emails, card numbers) - List —
distinctBy(); newsumPro,averagePro,maxPro,minProonList<num> - Widget —
onLongPress(),withOpacity() - BuildContext (new: Screen & Theme) —
screenSize,screenWidth,screenHeight,theme,textTheme,isDarkMode,unfocus() - Nullable Safety (new) —
isNullOrEmpty/isNullOrBlank/orDefault()onString?,isNullOrEmptyonList<T>?
Package Maintenance #
- Upgraded
flutter_lintsto^6.0.0and resolved the resulting lint - Added
repository,issue_tracker,funding, andtopicstopubspec.yamlfor pub.dev scoring - Removed accidentally committed
.flutter-plugins/.flutter-plugins-dependenciesand added them to.gitignore - Added unit and widget tests for all new extensions
1.0.28 #
Bug Fixes #
toWords()— fixed incorrect output for large numbers (was usingunits[]array for tens place, e.g. "two five thousand" → now "twenty five thousand")isValidCreditCardNumber()— fixed crash on non-numeric characters; spaces and dashes are now stripped before Luhn checkshowGradientSnackBar()— removed redundantBuildContext contextparameter (extension already hasthisas context)toHoursPro— fixed wrong divisor (/60→/3600) for seconds-to-hours conversiondistance_calculate.dart— removed straymain()function from library filedialogBackgroundColor— replaced deprecated Flutter API withdialogTheme: DialogThemeData(backgroundColor: ...)isNumeric()— renamed toisDigitsOnly()inValidationExtensionsProto resolve ambiguity conflict withStringExtensionsPro.isNumeric()
Example App — Full Redesign #
- Modern Material 3 UI with gradient SliverAppBar and feature card grid
- String Page — live input demonstrating 9 string operations
- Validation Page — real-time form validation with color-coded feedback for email, phone, password, OTP, credit card, and hex color
- Numbers Page — interactive demo for
toRoman,toOrdinal,toWords,toFileSize,toShortString,toDurationString, andtoWeekDay - Date & Time Page — live digital clock, date/time pickers, age calculator, date math, and time-of-day helpers
- SnackBar Page — tap-to-preview for all 6 snackbar styles
- Widget Page — live demos of widget extensions, navigation extensions, custom radio buttons, and visibility toggle
- Converter Page — tab-based unit converter (length, temperature, weight, energy) and geo distance calculator with city presets
- List Page — interactive demo for all list extensions: sort, find, chunk, dedupe,
forEachIndexed,toMap, andaddIfNotExists
1.0.9 #
- Bug fixed
1.0.11 #
- Bug fixed
1.0.12 #
- Local Image load and Network Image load extensions added
1.0.13 #
- Banner and logo changed
1.0.15 #
- Add Date format and date extensions and Update ReadMe Doc
1.0.16 #
- Add Time extensions
1.0.17 #
- Document Updated
1.0.18 #
- Document Updated and improvement
1.0.19 #
- Validation bugs solved
1.0.20 #
- Validation bugs solved
1.0.22 #
- List, snackBar, radio extensions add
1.0.23 #
- Add Distance According to Lat Lng
1.0.24 #
- Add Unit Conversions, Status Bar
