base_url_switcher 2.1.2 copy "base_url_switcher: ^2.1.2" to clipboard
base_url_switcher: ^2.1.2 copied to clipboard

A Flutter package for switching between base URLs with a beautiful UI switcher

Changelog #

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

2.1.2 - 2025-01-15 #

Documentation #

  • ๐Ÿ“š Improved README - Added clear examples showing where to wrap SimpleBaseUrlWrapper
  • ๐Ÿ’ก Better Examples - Added multiple examples for different use cases
  • ๐ŸŽฏ Clearer Instructions - Explained exactly where users should tap to access settings

Examples Added #

  • Wrap entire app body
  • Wrap specific logo/button
  • Wrap custom area with tap instructions

2.1.1 - 2025-01-15 #

Fixed #

  • ๐Ÿ› Critical Bug Fix - Fixed "Environment not found" error when setting default environment
  • ๐Ÿ”ง Case Sensitivity - Fixed case sensitivity issues in environment lookup
  • ๐Ÿงน Empty State Handling - Added proper handling for empty environments map
  • โœ… Test Coverage - All tests now pass successfully

Technical Details #

  • Fixed setEnvironment() method to use lowercase keys consistently
  • Fixed currentEnvironment getter to handle empty environments map
  • Fixed clear() method to properly clear in-memory environments
  • Added fallback environment when no environments exist

2.1.0 - 2025-01-15 #

Added #

  • ๐ŸŽฏ EnvironmentType Enum - Type-safe environment management
  • ๐Ÿ”ง Enhanced Type Safety - No more string typos in environment names
  • ๐Ÿ“ Auto-completion Support - IDE support for environment types
  • ๐ŸŽจ Display Name Extensions - Automatic formatting for environment names

Changed #

  • EnvService.initialize() now accepts EnvironmentType instead of strings
  • All environment creation methods use enum for consistency
  • Improved type safety throughout the package

New Features #

  • EnvironmentType enum with development, staging, production, local
  • Extension methods for display names and descriptions
  • Type-safe environment initialization

Breaking Changes #

  • EnvService.initialize(defaultEnvironment: String) โ†’ EnvService.initialize(defaultEnvironment: EnvironmentType)

2.0.0 - 2025-01-15 #

Added #

  • ๐Ÿš€ Ultra Simple Usage - Just wrap your widget with SimpleBaseUrlWrapper
  • ๐Ÿ” Hidden Access - Tap multiple times to access settings
  • ๐Ÿ”’ Password Protection - Secure access with customizable password
  • ๐Ÿ“ฑ Ready-to-Use Screen - Complete EnvSwitcherScreen included
  • ๐ŸŽฏ Environment Indicator - Show current environment in UI
  • ๐Ÿ“Š Environment Info Widget - Display environment details
  • ๐Ÿ”ง BaseUrlManager - Simplified API for accessing current Base URL
  • ๐ŸŽจ Enhanced UI - Beautiful and responsive design
  • ๐Ÿ“š Comprehensive Examples - Multiple usage examples included

Changed #

  • Simplified API with BaseUrlManager for easier access
  • Enhanced UI components with better styling
  • Improved documentation with ultra-simple usage examples
  • Better error handling and user feedback

New Widgets #

  • SimpleBaseUrlWrapper - Ultra-simple wrapper widget
  • BaseUrlWrapper - Full-featured wrapper with customization
  • EnvironmentIndicator - Show current environment in UI
  • EnvironmentInfo - Display environment details

Breaking Changes #

  • None - fully backward compatible

1.0.0 - 2025-01-15 #

Added #

  • Initial release of Env Manager package
  • Environment model with full configuration support
  • EnvService singleton for environment management
  • Beautiful EnvSwitcher UI widget
  • Persistent storage using SharedPreferences
  • Support for custom environments
  • Configuration value management
  • Comprehensive test coverage (21 tests)
  • Complete documentation and examples
  • Support for environment descriptions
  • Default environment indicator
  • Custom styling options for UI components
  • Programmatic environment switching
  • Environment validation and error handling

Features #

  • ๐ŸŽจ Beautiful UI Switcher with customizable styling
  • ๐Ÿ”ง Easy configuration with default environments
  • ๐Ÿ’พ Persistent storage that remembers environment choice
  • ๐ŸŽฏ Full type safety with Dart
  • ๐Ÿงช Comprehensive test coverage
  • ๐Ÿ“ฑ Responsive design for all screen sizes
  • ๐Ÿš€ Lightweight with minimal dependencies
  • ๐Ÿ”„ Hot reload support for environment changes
  • ๐Ÿ›ก๏ธ Error handling and validation
  • ๐Ÿ“š Complete documentation and examples

Technical Details #

  • Built with Flutter 3.0+
  • Uses SharedPreferences for persistence
  • Singleton pattern for service management
  • Material Design 3 components
  • Full widget testing support
  • Mock-friendly architecture for testing
7
likes
0
points
23
downloads

Publisher

unverified uploader

Weekly Downloads

A Flutter package for switching between base URLs with a beautiful UI switcher

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, shared_preferences

More

Packages that depend on base_url_switcher