widget_review 0.1.0
widget_review: ^0.1.0 copied to clipboard
Visual code review for Flutter. Tap any widget in your running app, leave a comment, and your AI agent reads it live over MCP.
// Minimal setup. A fuller demo app lives in the repository's example/ folder.
//
// Run with:
// flutter run --vmservice-out-file=.dart_tool/widget_review/vm_service_uri
// then connect your AI agent through the widget_review_mcp server.
import 'package:flutter/material.dart';
import 'package:widget_review/widget_review.dart';
void main() {
// Active in debug builds only; in release builds WidgetReview just returns
// your app.
runApp(const WidgetReview(child: MyApp()));
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
appBar: AppBar(title: const Text('Widget Review')),
body: Center(
child: FilledButton(
// Keys make reviews on a widget survive refactors.
key: const ValueKey('checkout'),
onPressed: () {},
child: const Text('Checkout'),
),
),
),
);
}
}