manageupgrades 0.0.5
manageupgrades: ^0.0.5 copied to clipboard
A Flutter package for managing app updates and maintenance mode with customizable UI. Supports both Android and iOS platforms with Google Play Store and App Store integration.
Manage Upgrades Flutter #
A Flutter package for managing app updates and maintenance mode with customizable UI. This package helps Flutter app developers inform or enforce customers to upgrade to the latest app version and specify maintenance windows.
Features #
- Force upgrade notifications
- Optional update messages
- Maintenance mode support
- Customizable UI styling
- Support for both Android (Google Play) and iOS (App Store)
- Easy integration with minimal setup
Installation #
Add this to your package's pubspec.yaml file:
dependencies:
manageupgrades: ^0.0.3
Usage #
Basic Usage #
final AppInfo appInfo = AppInfo(
projectId: 'your_project_id',
platform: 'ios', // or 'android'
version: '1.0.0',
apiKey: 'your_api_key',
googleid: 'com.example.app',
appleid: 'your_apple_id',
);
// Check app status in initState
@override
void initState() {
super.initState();
_checkAppStatusOnLoad();
}
Future<void> _checkAppStatusOnLoad() async {
await appInfo.checkAppStatus(context);
}
Custom Styling #
You can customize the appearance of update dialogs:
final customStyle = MessageStyle(
backgroundColor: Colors.grey[50],
titleTextColor: Colors.blue[900]!,
contentTextColor: Colors.black87,
buttonBackgroundColor: Colors.blue,
buttonTextColor: Colors.white,
borderRadius: 16.0,
contentPadding: EdgeInsets.symmetric(horizontal: 24.0, vertical: 20.0),
titleTextStyle: TextStyle(
fontSize: 22,
fontWeight: FontWeight.w600,
),
contentTextStyle: TextStyle(
fontSize: 16,
height: 1.5,
),
);
final AppInfo appInfo = AppInfo(
// ... other parameters ...
messageStyle: customStyle,
);
Customizable Properties #
The MessageStyle class allows you to customize:
- Background colors
- Text colors
- Button styling
- Border radius
- Padding
- Typography
License #
This project is licensed under the MIT License - see the LICENSE file for details.
More Information #
For more information, visit manageupgrades.com