rebuildcop 0.3.0
rebuildcop: ^0.3.0 copied to clipboard
Catch unnecessary widget rebuilds in Flutter: a Dart test helper that fails widget tests over a measured rebuild budget. Headless, no device, no probes.
import 'package:flutter/material.dart';
import 'set_state/ticking_shop.dart';
/// Runs the fixed shop screen. The interesting part of this example is in
/// `test/`: each file pairs an over-rebuilding widget (BEFORE) with its fix
/// (AFTER) and shows rebuildcop telling them apart.
void main() {
runApp(
const MaterialApp(
home: Scaffold(body: SafeArea(child: TickingShopFast())),
),
);
}