shutter 0.1.1
shutter: ^0.1.1 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.
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(),
);
}
}