Prerequisites
Before you begin, you must have:- Flutter SDK installed
- A Flutter Skin dashboard account with API credentials
Get started
Add flutter_skin package
Add the flutter_skin package to your Flutter project’s Then install the package:
pubspec.yaml:Create a project in the dashboard
- Log in to your Flutter Skin dashboard
- Click “Create New Project” in the Projects section
- Enter your project name
-
Click “Create”
Create a skin and activate it
- Navigate to the Skins section
- Click “Create New Skin”
- Configure your skin theme and colors following the Material Color Scheme schema
-
Toggle “Active” to
trueto set it as the active skin -
Click “Save”
Publish updates on the dashboard
- Review your project settings and active skin
- Click “Publish” to make your updates live
- Wait for the confirmation message
Retrieve API credentials
- Navigate to API Keys in your dashboard settings
- Copy your API key related to your project. You’ll need this to initialize the flutter_skin package in your app.
Initialize flutter_skin in your app
Add the FlutterSkin initialization to your app’s Then apply the theme to your main app widget:Your app will now use the active skin theme from the dashboard!
Every time you update the skin in the dashboard and publish it, your users will see the new theme without needing to update the app.
main() function: