shutter 0.1.0
shutter: ^0.1.0 copied to clipboard
Renders any Flutter widget to PNG, from a command-line expression or the project's `@Preview` functions, and diffs two runs pixel-wise. A small CLI shaped for AI agents.
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(),
);
}
}