📦 Isolated Development
Develop and test widgets in isolation without the complexity of your full app. Focus on one component at a time to create better UI building blocks.
📦 Isolated Development
Develop and test widgets in isolation without the complexity of your full app. Focus on one component at a time to create better UI building blocks.
🎨 Live Preview
See your changes in real-time with hot reload support for faster development. Instantly visualize how parameter changes affect your components.
🧪 Interactive Parameters
Control your widget properties with interactive controls for booleans, colors, numbers, and more. Experiment with different configurations without changing code.
🧩 Built-in Addons
Enhance development with pan, theme switching, safe area visualization, viewport controls, and more tools to perfect your components.
🏷️ Tagging & Search
Organize and find components easily with tags and a searchable component catalog. Navigate your component library efficiently.
📱 Responsive Testing
Test your components across different screen sizes and device orientations. Ensure your UI works perfectly on any Flutter platform.
Meta get meta => Meta<SandboxButton>( name: 'Button', module: 'Features / Core', component: SandboxButton, decorators: [ Decorator((context, story) => Padding( padding: const EdgeInsets.all(16), child: story, )), ],);
Story get $Green => Story( name: 'Green', builder: (context, params) { return SandboxButton( onPressed: () {}, title: params.string('title').required("Lorem"), color: params.color('color').required(Colors.green), size: params.single('size', SandboxButtonSize.values) .required(SandboxButtonSize.small), ); },);
import 'package:sandboxed_sandbox/components.g.dart';
// Run your Sandboxed app to preview all componentsvoid main() { runApp( const SandboxedApp( components: components, ), );}
Add sandboxed in your pubspec.yaml
:
dependencies: sandboxed_core: sandboxed:dev_dependencies: sandboxed_generator:
Install dependencies:
flutter pub get
Write Meta and stories
Run build_runner (required only when adding, renaming, removing Meta
or Story
):
flutter pub run build_runner build
Build sandboxed app with generated components
import 'package:sandboxed_sandbox/components.g.dart';
// Run your Sandboxed app to preview all componentsvoid main() { runApp( const SandboxedApp( components: components, ), );}