Fastest way to add authentication or in-app purchases to your Nylo Flutter application.
Scaffold UI is a powerful CLI tool that helps Flutter developers quickly integrate common UI patterns into their Nylo projects. Instead of spending hours building authentication flows or in-app purchase screens from scratch, you can have a complete, customizable implementation in minutes.
Generate a complete authentication flow with a single command:
dart run scaffold_ui:main auth
Choose from three authentication backends:
- Supabase - Full authentication service with ready-to-use UI components
- Laravel - Complete integration with Laravel Sanctum, including API services
- Firebase - Integration with Firebase Auth and Firestore with ready-to-use UI components
- Basic - Clean authentication UI templates for custom implementation
Add subscription flows and paywalls with:
dart run scaffold_ui:main iap
Currently supports:
- RevenueCat - Complete integration with SDK and pre-built UI components for subscription management
- Open the
ios/Runner.xcworkspace
file in Xcode - Signing & Capabilities > Add the
In-App Purchase
capability
Add scaffold_ui to your Flutter project:
dart pub add scaffold_ui
This will add the following to your pubspec.yaml:
dependencies:
scaffold_ui: ^1.2.1
- Create a Supabase account and project at supabase.com
- Run the auth scaffold command:
dart run scaffold_ui:main auth
- Select
supabase
when prompted - Enter your Supabase URL and Anon Key
- The tool will automatically:
- Configure Supabase authentication
- Generate UI components
- Set up necessary services
Prerequisites:
- A Laravel project with Sanctum configured
- Your User model must use the
HasApiTokens
trait
-
Install the Laravel package:
composer require nylo/laravel-nylo-auth
-
Publish the package assets:
php artisan vendor:publish --provider="Nylo\LaravelNyloAuth\LaravelNyloAuthServiceProvider"
-
Run the auth scaffold command:
dart run scaffold_ui:main auth
-
Select
laravel
and enter your project URL -
For additional Laravel configuration options, visit the laravel-nylo-auth repository
- Create a Firebase account and project at firebase.google.com
- Run the auth scaffold command:
dart run scaffold_ui:main auth
- Select
firebase
when prompted - This will:
- Install the Firebase SDK
- Generate UI components
- Set up necessary services
- Install
flutterfire
via https://firebase.google.com/docs/flutter/setup - Run
flutterfire configure
to complete the setup
For custom authentication implementations:
- Run
dart run scaffold_ui:main auth
- Select
basic
- The tool will generate UI components that you can customize with your authentication logic
See CHANGELOG for recent changes.
This project is licensed under the MIT License - see the License file for details.