PackageTrack
Sign in Get early access

base_widget_flutter

A Flutter BaseWidget wrapping Scaffold with a loading overlay and back-navigation control, plus weight-named text styles, hex colour parsing and a tintable SVG widget.

2.0.0 rutvikpipariya/base_widget_flutter

What this package is like to depend on

Last release 17 days ago

07 Aug 2026

Ships on a steady schedule

a new release about every 6 months

Nearly every release is documented

notes for 6 of 6 stable releases

Nothing withdrawn

no release was ever pulled

1 years old

6 releases · first in 2025

5 releases in the last 12 months

see the full history below

Release timeline

6 releases · Mar 2025 to Aug 2026
2026
Release Pre-release

Releases

latest 6
  1. 2.0.0 07 Aug 2026
    Release notes

    Breaking changes

    • BaseWidget no longer forces a white background. backgroundColor is now a parameter and defaults to null, so the screen follows ThemeData.scaffoldBackgroundColor and dark mode works. Pass backgroundColor: Colors.white to keep the old look.
    • canPop is now actually wired to a PopScope instead of being ignored, and its default changed from false to true (which matches the behaviour you were really getting). Pass canPop: false to block back navigation.

    New

    • BaseTextStyles — configure one font (fontFamily, fontSize, color, height, letterSpacing) and read back all nine weights, thin through black. Set BaseTextStyles.instance once at start-up, or hold your own instance for a second typeface.
    • HexColor extension on String'#1364FF'.toColor() and tryToColor(), accepting 3, 4, 6 or 8 digits in AARRGGBB order.
    • SvgImageWidget — an SvgPicture.asset that takes a plain Color instead of a ColorFilter, with semanticsLabel for screen readers.
    • BaseApiClient — a configured Dio with bearer auth via tokenProvider, a reference-counted onLoadingChanged signal, pluggable logging and per-request authenticated / showLoader flags.
    • BaseLocationService — permission handling plus getCurrentPosition, returning a LocationResult that says why a read failed.
    • BaseNotificationService — local notifications with a configurable icon and channel, deferred permission prompts and tap payloads.
    • BasePrefs — synchronous SharedPreferences after a one-time init(), with non-null defaults on every getter.
    • isLoading covers the body with a barrier and a progress indicator, with loadingIndicator to replace the default spinner.
    • dismissKeyboardOnTap unfocuses the current field on an outside tap.
    • safeArea wraps the body in a SafeArea.
    • Forwards floatingActionButton, bottomNavigationBar, drawer, endDrawer and resizeToAvoidBottomInset to the underlying Scaffold.

    Fixes and housekeeping

    • Removed the invalid flutter: platforms: block from pubspec.yaml, which Flutter 3.44 rejects for a non-plugin package.
    • Lowered the Dart SDK constraint from ^3.11.4 to ^3.9.0, the floor flutter_svg requires.
    • Added dependencies on flutter_svg, dio, geolocator, flutter_local_notifications and shared_preferences. The last three are native plugins needing per-platform setup, and flutter_local_notifications is not WASM-ready, so the package no longer carries the is:wasm-ready tag.
    • Added an example app, a widget test suite and dartdoc comments on the whole public API.
    Open source →
  2. 1.0.4 14 Apr 2026
    Release notes
    • Stable release of base_widget_flutter package
    • Added reusable base widgets for faster UI development
    • Improved code structure and maintainability
    • Updated dependencies and SDK constraints
    • Minor bug fixes and performance improvements
    Open source →
  3. 1.0.3 14 Apr 2026
    Release notes
    • Rewrote the package description.
    • Fixed the malformed homepage URL.
    Open source →
  4. 1.0.2 14 Apr 2026
    Release notes
    • Maintenance release.
    Open source →
  5. 1.0.1 04 Oct 2025
    Release notes
    • Maintenance release.
    Open source →
  6. 0.0.1 28 Mar 2025
    Release notes
    • Initial release.
    Open source →

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive