shutter 0.2.0
shutter: ^0.2.0 copied to clipboard
Renders a Flutter project's widget previews to PNG, reusing the ones it already has, and diffs two runs pixel by pixel into before and after images of a change.
example/lib/main.dart
import 'package:flutter/material.dart';
import 'app_theme.dart';
import 'ui/settings_page.dart';
void main() {
runApp(const ExampleApp());
}
class ExampleApp extends StatelessWidget {
const ExampleApp({super.key});
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'shutter example',
theme: appTheme,
darkTheme: appDarkTheme,
home: const SettingsPage(),
);
}
}