Rename Sample classes (#124080)

Rename Sample classes
diff --git a/examples/api/lib/widgets/actions/action.action_overridable.0.dart b/examples/api/lib/widgets/actions/action.action_overridable.0.dart
index ec7a0b4..3304e0f 100644
--- a/examples/api/lib/widgets/actions/action.action_overridable.0.dart
+++ b/examples/api/lib/widgets/actions/action.action_overridable.0.dart
@@ -2,11 +2,11 @@
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
-// Flutter code sample for [Action.Action.overridable].
-
 import 'package:flutter/material.dart';
 import 'package:flutter/services.dart';
 
+/// Flutter code sample for [Action.Action.overridable].
+
 void main() {
   runApp(
     const MaterialApp(
@@ -18,12 +18,13 @@
 }
 
 const CopyTextIntent copyTextIntent = CopyTextIntent._();
+
 class CopyTextIntent extends Intent {
   const CopyTextIntent._();
 }
 
 class CopyableText extends StatelessWidget {
-  const CopyableText({ super.key, required this.text });
+  const CopyableText({super.key, required this.text});
 
   final String text;
 
@@ -33,9 +34,11 @@
   Widget build(BuildContext context) {
     final Action<CopyTextIntent> defaultCopyAction = CallbackAction<CopyTextIntent>(onInvoke: _copy);
     return Shortcuts(
-      shortcuts: const <ShortcutActivator, Intent> { SingleActivator(LogicalKeyboardKey.keyC, control: true) : copyTextIntent },
+      shortcuts: const <ShortcutActivator, Intent>{
+        SingleActivator(LogicalKeyboardKey.keyC, control: true): copyTextIntent
+      },
       child: Actions(
-        actions: <Type, Action<Intent>> {
+        actions: <Type, Action<Intent>>{
           // The Action is made overridable so the VerificationCodeGenerator
           // widget can override how copying is handled.
           CopyTextIntent: Action<CopyTextIntent>.overridable(defaultAction: defaultCopyAction, context: context),
@@ -53,7 +56,7 @@
 }
 
 class VerificationCodeGenerator extends StatelessWidget {
-  const VerificationCodeGenerator({ super.key });
+  const VerificationCodeGenerator({super.key});
 
   void _copy(CopyTextIntent intent) {
     debugPrint('Content copied');
@@ -63,7 +66,7 @@
   @override
   Widget build(BuildContext context) {
     return Actions(
-      actions: <Type, Action<Intent>> { CopyTextIntent: CallbackAction<CopyTextIntent>(onInvoke: _copy) },
+      actions: <Type, Action<Intent>>{CopyTextIntent: CallbackAction<CopyTextIntent>(onInvoke: _copy)},
       child: const Column(
         mainAxisAlignment: MainAxisAlignment.center,
         children: <Widget>[
@@ -73,9 +76,9 @@
             mainAxisAlignment: MainAxisAlignment.center,
             children: <Widget>[
               CopyableText(text: '111'),
-              SizedBox(width: 5,),
+              SizedBox(width: 5),
               CopyableText(text: '222'),
-              SizedBox(width: 5,),
+              SizedBox(width: 5),
               CopyableText(text: '333'),
             ],
           ),
diff --git a/examples/api/lib/widgets/actions/action_listener.0.dart b/examples/api/lib/widgets/actions/action_listener.0.dart
index 98f7a15..d4866a6 100644
--- a/examples/api/lib/widgets/actions/action_listener.0.dart
+++ b/examples/api/lib/widgets/actions/action_listener.0.dart
@@ -2,25 +2,22 @@
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
-// Flutter code sample for [ActionListener].
-
 import 'package:flutter/material.dart';
 
-void main() => runApp(const MyApp());
+/// Flutter code sample for [ActionListener].
 
-class MyApp extends StatelessWidget {
-  const MyApp({super.key});
+void main() => runApp(const ActionListenerExampleApp());
 
-  static const String _title = 'Flutter Code Sample';
+class ActionListenerExampleApp extends StatelessWidget {
+  const ActionListenerExampleApp({super.key});
 
   @override
   Widget build(BuildContext context) {
     return MaterialApp(
-      title: _title,
       home: Scaffold(
-        appBar: AppBar(title: const Text(_title)),
+        appBar: AppBar(title: const Text('ActionListener Sample')),
         body: const Center(
-          child: MyStatefulWidget(),
+          child: ActionListenerExample(),
         ),
       ),
     );
@@ -75,8 +72,7 @@
               },
               action: _myAction,
               child: ElevatedButton(
-                onPressed: () => const ActionDispatcher()
-                    .invokeAction(_myAction, const MyIntent()),
+                onPressed: () => const ActionDispatcher().invokeAction(_myAction, const MyIntent()),
                 child: const Text('Call Action Listener'),
               ),
             ),
@@ -109,17 +105,3 @@
 class MyIntent extends Intent {
   const MyIntent();
 }
-
-class MyStatefulWidget extends StatefulWidget {
-  const MyStatefulWidget({super.key});
-
-  @override
-  State<MyStatefulWidget> createState() => _MyStatefulWidgetState();
-}
-
-class _MyStatefulWidgetState extends State<MyStatefulWidget> {
-  @override
-  Widget build(BuildContext context) {
-    return const ActionListenerExample();
-  }
-}
diff --git a/examples/api/lib/widgets/actions/actions.0.dart b/examples/api/lib/widgets/actions/actions.0.dart
index 8fbeaf1..e8f3366 100644
--- a/examples/api/lib/widgets/actions/actions.0.dart
+++ b/examples/api/lib/widgets/actions/actions.0.dart
@@ -2,25 +2,22 @@
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
-// Flutter code sample for [Actions].
-
 import 'package:flutter/material.dart';
 
-void main() => runApp(const MyApp());
+/// Flutter code sample for [Actions].
 
-class MyApp extends StatelessWidget {
-  const MyApp({super.key});
+void main() => runApp(const ActionsExampleApp());
 
-  static const String _title = 'Flutter Code Sample';
+class ActionsExampleApp extends StatelessWidget {
+  const ActionsExampleApp({super.key});
 
   @override
   Widget build(BuildContext context) {
     return MaterialApp(
-      title: _title,
       home: Scaffold(
-        appBar: AppBar(title: const Text(_title)),
+        appBar: AppBar(title: const Text('Actions Sample')),
         body: const Center(
-          child: MyStatefulWidget(),
+          child: ActionsExample(),
         ),
       ),
     );
@@ -116,14 +113,14 @@
   }
 }
 
-class MyStatefulWidget extends StatefulWidget {
-  const MyStatefulWidget({super.key});
+class ActionsExample extends StatefulWidget {
+  const ActionsExample({super.key});
 
   @override
-  State<MyStatefulWidget> createState() => _MyStatefulWidgetState();
+  State<ActionsExample> createState() => _ActionsExampleState();
 }
 
-class _MyStatefulWidgetState extends State<MyStatefulWidget> {
+class _ActionsExampleState extends State<ActionsExample> {
   Model model = Model();
   int count = 0;
 
@@ -154,8 +151,7 @@
                       builder: (BuildContext context, Widget? child) {
                         return Padding(
                           padding: const EdgeInsets.all(8.0),
-                          child: Text('${model.data.value}',
-                              style: Theme.of(context).textTheme.headlineMedium),
+                          child: Text('${model.data.value}', style: Theme.of(context).textTheme.headlineMedium),
                         );
                       }),
                   IconButton(
diff --git a/examples/api/lib/widgets/actions/focusable_action_detector.0.dart b/examples/api/lib/widgets/actions/focusable_action_detector.0.dart
index 019d399..1043b0f 100644
--- a/examples/api/lib/widgets/actions/focusable_action_detector.0.dart
+++ b/examples/api/lib/widgets/actions/focusable_action_detector.0.dart
@@ -2,23 +2,20 @@
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
-// Flutter code sample for [FocusableActionDetector].
-
 import 'package:flutter/material.dart';
 import 'package:flutter/services.dart';
 
-void main() => runApp(const MyApp());
+/// Flutter code sample for [FocusableActionDetector].
 
-class MyApp extends StatelessWidget {
-  const MyApp({super.key});
+void main() => runApp(const FocusableActionDetectorExampleApp());
 
-  static const String _title = 'Flutter Code Sample';
+class FocusableActionDetectorExampleApp extends StatelessWidget {
+  const FocusableActionDetectorExampleApp({super.key});
 
   @override
   Widget build(BuildContext context) {
     return const MaterialApp(
-      title: _title,
-      home: MyStatefulWidget(),
+      home: FocusableActionDetectorExample(),
     );
   }
 }
@@ -42,8 +39,7 @@
   bool _hovering = false;
   bool _on = false;
   late final Map<Type, Action<Intent>> _actionMap;
-  final Map<ShortcutActivator, Intent> _shortcutMap =
-      const <ShortcutActivator, Intent>{
+  final Map<ShortcutActivator, Intent> _shortcutMap = const <ShortcutActivator, Intent>{
     SingleActivator(LogicalKeyboardKey.keyX): ActivateIntent(),
   };
 
@@ -115,14 +111,14 @@
   }
 }
 
-class MyStatefulWidget extends StatefulWidget {
-  const MyStatefulWidget({super.key});
+class FocusableActionDetectorExample extends StatefulWidget {
+  const FocusableActionDetectorExample({super.key});
 
   @override
-  State<MyStatefulWidget> createState() => _MyStatefulWidgetState();
+  State<FocusableActionDetectorExample> createState() => _FocusableActionDetectorExampleState();
 }
 
-class _MyStatefulWidgetState extends State<MyStatefulWidget> {
+class _FocusableActionDetectorExampleState extends State<FocusableActionDetectorExample> {
   @override
   Widget build(BuildContext context) {
     return Scaffold(
@@ -135,8 +131,7 @@
           children: <Widget>[
             Padding(
               padding: const EdgeInsets.all(8.0),
-              child:
-                  TextButton(onPressed: () {}, child: const Text('Press Me')),
+              child: TextButton(onPressed: () {}, child: const Text('Press Me')),
             ),
             Padding(
               padding: const EdgeInsets.all(8.0),
diff --git a/examples/api/lib/widgets/animated_grid/animated_grid.0.dart b/examples/api/lib/widgets/animated_grid/animated_grid.0.dart
index b09c821..3f2b55d 100644
--- a/examples/api/lib/widgets/animated_grid/animated_grid.0.dart
+++ b/examples/api/lib/widgets/animated_grid/animated_grid.0.dart
@@ -2,10 +2,10 @@
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
-// Flutter code sample for [AnimatedGrid].
-
 import 'package:flutter/material.dart';
 
+/// Flutter code sample for [AnimatedGrid].
+
 void main() {
   runApp(const AnimatedGridSample());
 }
diff --git a/examples/api/lib/widgets/animated_grid/sliver_animated_grid.0.dart b/examples/api/lib/widgets/animated_grid/sliver_animated_grid.0.dart
index 34af8c0..65c9a0e 100644
--- a/examples/api/lib/widgets/animated_grid/sliver_animated_grid.0.dart
+++ b/examples/api/lib/widgets/animated_grid/sliver_animated_grid.0.dart
@@ -2,10 +2,10 @@
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
-// Flutter code sample for [SliverAnimatedGrid].
-
 import 'package:flutter/material.dart';
 
+/// Flutter code sample for [SliverAnimatedGrid].
+
 void main() => runApp(const SliverAnimatedGridSample());
 
 class SliverAnimatedGridSample extends StatefulWidget {
diff --git a/examples/api/lib/widgets/animated_list/animated_list.0.dart b/examples/api/lib/widgets/animated_list/animated_list.0.dart
index 2b195a0..c59a243 100644
--- a/examples/api/lib/widgets/animated_list/animated_list.0.dart
+++ b/examples/api/lib/widgets/animated_list/animated_list.0.dart
@@ -2,10 +2,10 @@
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
-// Flutter code sample for [AnimatedList].
-
 import 'package:flutter/material.dart';
 
+/// Flutter code sample for [AnimatedList].
+
 void main() {
   runApp(const AnimatedListSample());
 }
@@ -21,8 +21,7 @@
   final GlobalKey<AnimatedListState> _listKey = GlobalKey<AnimatedListState>();
   late ListModel<int> _list;
   int? _selectedItem;
-  late int
-      _nextItem; // The next item inserted when the user presses the '+' button.
+  late int _nextItem; // The next item inserted when the user presses the '+' button.
 
   @override
   void initState() {
@@ -36,8 +35,7 @@
   }
 
   // Used to build list items that haven't been removed.
-  Widget _buildItem(
-      BuildContext context, int index, Animation<double> animation) {
+  Widget _buildItem(BuildContext context, int index, Animation<double> animation) {
     return CardItem(
       animation: animation,
       item: _list[index],
@@ -57,8 +55,7 @@
   /// completed (even though it's gone as far as this ListModel is concerned).
   /// The widget will be used by the [AnimatedListState.removeItem] method's
   /// [AnimatedRemovedItemBuilder] parameter.
-  Widget _buildRemovedItem(
-      int item, BuildContext context, Animation<double> animation) {
+  Widget _buildRemovedItem(int item, BuildContext context, Animation<double> animation) {
     return CardItem(
       animation: animation,
       item: item,
@@ -68,8 +65,7 @@
 
   // Insert the "next item" into the list model.
   void _insert() {
-    final int index =
-        _selectedItem == null ? _list.length : _list.indexOf(_selectedItem!);
+    final int index = _selectedItem == null ? _list.length : _list.indexOf(_selectedItem!);
     _list.insert(index, _nextItem++);
   }
 
@@ -115,8 +111,7 @@
   }
 }
 
-typedef RemovedItemBuilder<T> = Widget Function(
-    T item, BuildContext context, Animation<double> animation);
+typedef RemovedItemBuilder<T> = Widget Function(T item, BuildContext context, Animation<double> animation);
 
 /// Keeps a Dart [List] in sync with an [AnimatedList].
 ///
@@ -178,7 +173,7 @@
     this.selected = false,
     required this.animation,
     required this.item,
-  })  : assert(item >= 0);
+  }) : assert(item >= 0);
 
   final Animation<double> animation;
   final VoidCallback? onTap;
diff --git a/examples/api/lib/widgets/animated_list/sliver_animated_list.0.dart b/examples/api/lib/widgets/animated_list/sliver_animated_list.0.dart
index 34677e5..182b24b 100644
--- a/examples/api/lib/widgets/animated_list/sliver_animated_list.0.dart
+++ b/examples/api/lib/widgets/animated_list/sliver_animated_list.0.dart
@@ -2,30 +2,26 @@
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
-// Flutter code sample for [SliverAnimatedList].
-
 import 'package:flutter/material.dart';
 
+/// Flutter code sample for [SliverAnimatedList].
+
 void main() => runApp(const SliverAnimatedListSample());
 
 class SliverAnimatedListSample extends StatefulWidget {
   const SliverAnimatedListSample({super.key});
 
   @override
-  State<SliverAnimatedListSample> createState() =>
-      _SliverAnimatedListSampleState();
+  State<SliverAnimatedListSample> createState() => _SliverAnimatedListSampleState();
 }
 
 class _SliverAnimatedListSampleState extends State<SliverAnimatedListSample> {
-  final GlobalKey<SliverAnimatedListState> _listKey =
-      GlobalKey<SliverAnimatedListState>();
+  final GlobalKey<SliverAnimatedListState> _listKey = GlobalKey<SliverAnimatedListState>();
   final GlobalKey<ScaffoldState> _scaffoldKey = GlobalKey<ScaffoldState>();
-  final GlobalKey<ScaffoldMessengerState> _scaffoldMessengerKey =
-      GlobalKey<ScaffoldMessengerState>();
+  final GlobalKey<ScaffoldMessengerState> _scaffoldMessengerKey = GlobalKey<ScaffoldMessengerState>();
   late ListModel<int> _list;
   int? _selectedItem;
-  late int
-      _nextItem; // The next item inserted when the user presses the '+' button.
+  late int _nextItem; // The next item inserted when the user presses the '+' button.
 
   @override
   void initState() {
@@ -39,8 +35,7 @@
   }
 
   // Used to build list items that haven't been removed.
-  Widget _buildItem(
-      BuildContext context, int index, Animation<double> animation) {
+  Widget _buildItem(BuildContext context, int index, Animation<double> animation) {
     return CardItem(
       animation: animation,
       item: _list[index],
@@ -60,8 +55,7 @@
   /// completed (even though it's gone as far this ListModel is concerned). The
   /// widget will be used by the [AnimatedListState.removeItem] method's
   /// [AnimatedRemovedItemBuilder] parameter.
-  Widget _buildRemovedItem(
-      int item, BuildContext context, Animation<double> animation) {
+  Widget _buildRemovedItem(int item, BuildContext context, Animation<double> animation) {
     return CardItem(
       animation: animation,
       item: item,
@@ -70,8 +64,7 @@
 
   // Insert the "next item" into the list model.
   void _insert() {
-    final int index =
-        _selectedItem == null ? _list.length : _list.indexOf(_selectedItem!);
+    final int index = _selectedItem == null ? _list.length : _list.indexOf(_selectedItem!);
     _list.insert(index, _nextItem++);
   }
 
@@ -135,8 +128,7 @@
   }
 }
 
-typedef RemovedItemBuilder<E> = Widget Function(
-    E item, BuildContext context, Animation<double> animation);
+typedef RemovedItemBuilder<E> = Widget Function(E item, BuildContext context, Animation<double> animation);
 
 // Keeps a Dart [List] in sync with an [AnimatedList].
 //
@@ -170,8 +162,7 @@
     if (removedItem != null) {
       _animatedList.removeItem(
         index,
-        (BuildContext context, Animation<double> animation) =>
-            removedItemBuilder(removedItem, context, animation),
+        (BuildContext context, Animation<double> animation) => removedItemBuilder(removedItem, context, animation),
       );
     }
     return removedItem;
@@ -219,9 +210,7 @@
           child: SizedBox(
             height: 80.0,
             child: Card(
-              color: selected
-                  ? Colors.black12
-                  : Colors.primaries[item % Colors.primaries.length],
+              color: selected ? Colors.black12 : Colors.primaries[item % Colors.primaries.length],
               child: Center(
                 child: Text(
                   'Item $item',
diff --git a/examples/api/lib/widgets/animated_size/animated_size.0.dart b/examples/api/lib/widgets/animated_size/animated_size.0.dart
index 915eae0..76f53b3 100644
--- a/examples/api/lib/widgets/animated_size/animated_size.0.dart
+++ b/examples/api/lib/widgets/animated_size/animated_size.0.dart
@@ -2,39 +2,36 @@
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
-// Flutter code sample for [AnimatedSize].
-
 import 'package:flutter/material.dart';
 
-void main() => runApp(const MyApp());
+/// Flutter code sample for [AnimatedSize].
 
-class MyApp extends StatelessWidget {
-  const MyApp({super.key});
+void main() => runApp(const AnimatedSizeExampleApp());
 
-  static const String _title = 'Flutter Code Sample';
+class AnimatedSizeExampleApp extends StatelessWidget {
+  const AnimatedSizeExampleApp({super.key});
 
   @override
   Widget build(BuildContext context) {
     return MaterialApp(
-      title: _title,
       home: Scaffold(
-        appBar: AppBar(title: const Text(_title)),
+        appBar: AppBar(title: const Text('AnimatedSize Sample')),
         body: const Center(
-          child: MyStatefulWidget(),
+          child: AnimatedSizeExample(),
         ),
       ),
     );
   }
 }
 
-class MyStatefulWidget extends StatefulWidget {
-  const MyStatefulWidget({super.key});
+class AnimatedSizeExample extends StatefulWidget {
+  const AnimatedSizeExample({super.key});
 
   @override
-  State<MyStatefulWidget> createState() => _MyStatefulWidgetState();
+  State<AnimatedSizeExample> createState() => _AnimatedSizeExampleState();
 }
 
-class _MyStatefulWidgetState extends State<MyStatefulWidget> {
+class _AnimatedSizeExampleState extends State<AnimatedSizeExample> {
   double _size = 50.0;
   bool _large = false;
 
diff --git a/examples/api/lib/widgets/animated_switcher/animated_switcher.0.dart b/examples/api/lib/widgets/animated_switcher/animated_switcher.0.dart
index 208759c..1405567 100644
--- a/examples/api/lib/widgets/animated_switcher/animated_switcher.0.dart
+++ b/examples/api/lib/widgets/animated_switcher/animated_switcher.0.dart
@@ -2,34 +2,31 @@
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
-// Flutter code sample for [AnimatedSwitcher].
-
 import 'package:flutter/material.dart';
 
-void main() => runApp(const MyApp());
+/// Flutter code sample for [AnimatedSwitcher].
 
-class MyApp extends StatelessWidget {
-  const MyApp({super.key});
+void main() => runApp(const AnimatedSwitcherExampleApp());
 
-  static const String _title = 'Flutter Code Sample';
+class AnimatedSwitcherExampleApp extends StatelessWidget {
+  const AnimatedSwitcherExampleApp({super.key});
 
   @override
   Widget build(BuildContext context) {
     return const MaterialApp(
-      title: _title,
-      home: MyStatefulWidget(),
+      home: AnimatedSwitcherExample(),
     );
   }
 }
 
-class MyStatefulWidget extends StatefulWidget {
-  const MyStatefulWidget({super.key});
+class AnimatedSwitcherExample extends StatefulWidget {
+  const AnimatedSwitcherExample({super.key});
 
   @override
-  State<MyStatefulWidget> createState() => _MyStatefulWidgetState();
+  State<AnimatedSwitcherExample> createState() => _AnimatedSwitcherExampleState();
 }
 
-class _MyStatefulWidgetState extends State<MyStatefulWidget> {
+class _AnimatedSwitcherExampleState extends State<AnimatedSwitcherExample> {
   int _count = 0;
 
   @override
diff --git a/examples/api/lib/widgets/app/widgets_app.widgets_app.0.dart b/examples/api/lib/widgets/app/widgets_app.widgets_app.0.dart
index f09e72c..82a8d00 100644
--- a/examples/api/lib/widgets/app/widgets_app.widgets_app.0.dart
+++ b/examples/api/lib/widgets/app/widgets_app.widgets_app.0.dart
@@ -2,14 +2,14 @@
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
-// Flutter code sample for [WidgetsApp].
-
 import 'package:flutter/material.dart';
 
-void main() => runApp(const MyApp());
+/// Flutter code sample for [WidgetsApp].
 
-class MyApp extends StatelessWidget {
-  const MyApp({super.key});
+void main() => runApp(const WidgetsAppExampleApp());
+
+class WidgetsAppExampleApp extends StatelessWidget {
+  const WidgetsAppExampleApp({super.key});
 
   @override
   Widget build(BuildContext context) {
@@ -19,7 +19,8 @@
       home: const Center(child: Text('Hello World')),
       pageRouteBuilder: <T>(RouteSettings settings, WidgetBuilder builder) => PageRouteBuilder<T>(
         settings: settings,
-        pageBuilder: (BuildContext context, Animation<double> animation, Animation<double> secondaryAnimation) => builder(context),
+        pageBuilder: (BuildContext context, Animation<double> animation, Animation<double> secondaryAnimation) =>
+            builder(context),
       ),
     );
   }
diff --git a/examples/api/lib/widgets/async/future_builder.0.dart b/examples/api/lib/widgets/async/future_builder.0.dart
index ed9b5f7..5684432 100644
--- a/examples/api/lib/widgets/async/future_builder.0.dart
+++ b/examples/api/lib/widgets/async/future_builder.0.dart
@@ -2,34 +2,31 @@
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
-// Flutter code sample for [FutureBuilder].
-
 import 'package:flutter/material.dart';
 
-void main() => runApp(const MyApp());
+/// Flutter code sample for [FutureBuilder].
 
-class MyApp extends StatelessWidget {
-  const MyApp({super.key});
+void main() => runApp(const FutureBuilderExampleApp());
 
-  static const String _title = 'Flutter Code Sample';
+class FutureBuilderExampleApp extends StatelessWidget {
+  const FutureBuilderExampleApp({super.key});
 
   @override
   Widget build(BuildContext context) {
     return const MaterialApp(
-      title: _title,
-      home: MyStatefulWidget(),
+      home: FutureBuilderExample(),
     );
   }
 }
 
-class MyStatefulWidget extends StatefulWidget {
-  const MyStatefulWidget({super.key});
+class FutureBuilderExample extends StatefulWidget {
+  const FutureBuilderExample({super.key});
 
   @override
-  State<MyStatefulWidget> createState() => _MyStatefulWidgetState();
+  State<FutureBuilderExample> createState() => _FutureBuilderExampleState();
 }
 
-class _MyStatefulWidgetState extends State<MyStatefulWidget> {
+class _FutureBuilderExampleState extends State<FutureBuilderExample> {
   final Future<String> _calculation = Future<String>.delayed(
     const Duration(seconds: 2),
     () => 'Data Loaded',
diff --git a/examples/api/lib/widgets/async/stream_builder.0.dart b/examples/api/lib/widgets/async/stream_builder.0.dart
index 0456aa2..552763a 100644
--- a/examples/api/lib/widgets/async/stream_builder.0.dart
+++ b/examples/api/lib/widgets/async/stream_builder.0.dart
@@ -2,36 +2,33 @@
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
-// Flutter code sample for [StreamBuilder].
-
 import 'dart:async';
 
 import 'package:flutter/material.dart';
 
-void main() => runApp(const MyApp());
+/// Flutter code sample for [StreamBuilder].
 
-class MyApp extends StatelessWidget {
-  const MyApp({super.key});
+void main() => runApp(const StreamBuilderExampleApp());
 
-  static const String _title = 'Flutter Code Sample';
+class StreamBuilderExampleApp extends StatelessWidget {
+  const StreamBuilderExampleApp({super.key});
 
   @override
   Widget build(BuildContext context) {
     return const MaterialApp(
-      title: _title,
-      home: MyStatefulWidget(),
+      home: StreamBuilderExample(),
     );
   }
 }
 
-class MyStatefulWidget extends StatefulWidget {
-  const MyStatefulWidget({super.key});
+class StreamBuilderExample extends StatefulWidget {
+  const StreamBuilderExample({super.key});
 
   @override
-  State<MyStatefulWidget> createState() => _MyStatefulWidgetState();
+  State<StreamBuilderExample> createState() => _StreamBuilderExampleState();
 }
 
-class _MyStatefulWidgetState extends State<MyStatefulWidget> {
+class _StreamBuilderExampleState extends State<StreamBuilderExample> {
   final Stream<int> _bids = (() {
     late final StreamController<int> controller;
     controller = StreamController<int>(
diff --git a/examples/api/lib/widgets/autocomplete/raw_autocomplete.0.dart b/examples/api/lib/widgets/autocomplete/raw_autocomplete.0.dart
index d2ae2ae..1cf3706 100644
--- a/examples/api/lib/widgets/autocomplete/raw_autocomplete.0.dart
+++ b/examples/api/lib/widgets/autocomplete/raw_autocomplete.0.dart
@@ -2,10 +2,10 @@
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
-// Flutter code sample for [RawAutocomplete].
-
 import 'package:flutter/material.dart';
 
+/// Flutter code sample for [RawAutocomplete].
+
 void main() => runApp(const AutocompleteExampleApp());
 
 class AutocompleteExampleApp extends StatelessWidget {
@@ -43,10 +43,12 @@
           return option.contains(textEditingValue.text.toLowerCase());
         });
       },
-      fieldViewBuilder: (BuildContext context,
-          TextEditingController textEditingController,
-          FocusNode focusNode,
-          VoidCallback onFieldSubmitted) {
+      fieldViewBuilder: (
+        BuildContext context,
+        TextEditingController textEditingController,
+        FocusNode focusNode,
+        VoidCallback onFieldSubmitted,
+      ) {
         return TextFormField(
           controller: textEditingController,
           focusNode: focusNode,
@@ -55,8 +57,11 @@
           },
         );
       },
-      optionsViewBuilder: (BuildContext context,
-          AutocompleteOnSelected<String> onSelected, Iterable<String> options) {
+      optionsViewBuilder: (
+        BuildContext context,
+        AutocompleteOnSelected<String> onSelected,
+        Iterable<String> options,
+      ) {
         return Align(
           alignment: Alignment.topLeft,
           child: Material(
diff --git a/examples/api/lib/widgets/autocomplete/raw_autocomplete.1.dart b/examples/api/lib/widgets/autocomplete/raw_autocomplete.1.dart
index 1bb54d5..2d6a686 100644
--- a/examples/api/lib/widgets/autocomplete/raw_autocomplete.1.dart
+++ b/examples/api/lib/widgets/autocomplete/raw_autocomplete.1.dart
@@ -2,10 +2,10 @@
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
-// Flutter code sample for [RawAutocomplete].
-
 import 'package:flutter/material.dart';
 
+/// Flutter code sample for [RawAutocomplete].
+
 void main() => runApp(const AutocompleteExampleApp());
 
 class AutocompleteExampleApp extends StatelessWidget {
@@ -72,16 +72,16 @@
         return _userOptions.where((User option) {
           // Search based on User.toString, which includes both name and
           // email, even though the display string is just the name.
-          return option
-              .toString()
-              .contains(textEditingValue.text.toLowerCase());
+          return option.toString().contains(textEditingValue.text.toLowerCase());
         });
       },
       displayStringForOption: _displayStringForOption,
-      fieldViewBuilder: (BuildContext context,
-          TextEditingController textEditingController,
-          FocusNode focusNode,
-          VoidCallback onFieldSubmitted) {
+      fieldViewBuilder: (
+        BuildContext context,
+        TextEditingController textEditingController,
+        FocusNode focusNode,
+        VoidCallback onFieldSubmitted,
+      ) {
         return TextFormField(
           controller: textEditingController,
           focusNode: focusNode,
@@ -90,8 +90,7 @@
           },
         );
       },
-      optionsViewBuilder: (BuildContext context,
-          AutocompleteOnSelected<User> onSelected, Iterable<User> options) {
+      optionsViewBuilder: (BuildContext context, AutocompleteOnSelected<User> onSelected, Iterable<User> options) {
         return Align(
           alignment: Alignment.topLeft,
           child: Material(
diff --git a/examples/api/lib/widgets/autocomplete/raw_autocomplete.2.dart b/examples/api/lib/widgets/autocomplete/raw_autocomplete.2.dart
index 12bb6dc..8d64360 100644
--- a/examples/api/lib/widgets/autocomplete/raw_autocomplete.2.dart
+++ b/examples/api/lib/widgets/autocomplete/raw_autocomplete.2.dart
@@ -2,10 +2,10 @@
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
-// Flutter code sample for [RawAutocomplete].
-
 import 'package:flutter/material.dart';
 
+/// Flutter code sample for [RawAutocomplete].
+
 void main() => runApp(const AutocompleteExampleApp());
 
 class AutocompleteExampleApp extends StatelessWidget {
@@ -62,8 +62,7 @@
                 _dropdownValue = newValue;
               });
             },
-            items: <String>['One', 'Two', 'Free', 'Four']
-                .map<DropdownMenuItem<String>>((String value) {
+            items: <String>['One', 'Two', 'Free', 'Four'].map<DropdownMenuItem<String>>((String value) {
               return DropdownMenuItem<String>(
                 value: value,
                 child: Text(value),
@@ -99,10 +98,12 @@
                 _autocompleteSelection = selection;
               });
             },
-            fieldViewBuilder: (BuildContext context,
-                TextEditingController textEditingController,
-                FocusNode focusNode,
-                VoidCallback onFieldSubmitted) {
+            fieldViewBuilder: (
+              BuildContext context,
+              TextEditingController textEditingController,
+              FocusNode focusNode,
+              VoidCallback onFieldSubmitted,
+            ) {
               return TextFormField(
                 controller: textEditingController,
                 decoration: const InputDecoration(
@@ -120,9 +121,11 @@
                 },
               );
             },
-            optionsViewBuilder: (BuildContext context,
-                AutocompleteOnSelected<String> onSelected,
-                Iterable<String> options) {
+            optionsViewBuilder: (
+              BuildContext context,
+              AutocompleteOnSelected<String> onSelected,
+              Iterable<String> options,
+            ) {
               return Align(
                 alignment: Alignment.topLeft,
                 child: Material(
@@ -164,8 +167,7 @@
                       child: ListBody(
                         children: <Widget>[
                           Text('DropdownButtonFormField: "$_dropdownValue"'),
-                          Text(
-                              'TextFormField: "${_textEditingController.text}"'),
+                          Text('TextFormField: "${_textEditingController.text}"'),
                           Text('RawAutocomplete: "$_autocompleteSelection"'),
                         ],
                       ),
diff --git a/examples/api/lib/widgets/autocomplete/raw_autocomplete.focus_node.0.dart b/examples/api/lib/widgets/autocomplete/raw_autocomplete.focus_node.0.dart
index 8a30c81..c8d5d27 100644
--- a/examples/api/lib/widgets/autocomplete/raw_autocomplete.focus_node.0.dart
+++ b/examples/api/lib/widgets/autocomplete/raw_autocomplete.focus_node.0.dart
@@ -2,10 +2,10 @@
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
-// Flutter code sample for [RawAutocomplete.focusNode].
-
 import 'package:flutter/material.dart';
 
+/// Flutter code sample for [RawAutocomplete.focusNode].
+
 void main() => runApp(const AutocompleteExampleApp());
 
 class AutocompleteExampleApp extends StatelessWidget {
@@ -64,9 +64,11 @@
               return option.contains(textEditingValue.text.toLowerCase());
             }).toList();
           },
-          optionsViewBuilder: (BuildContext context,
-              AutocompleteOnSelected<String> onSelected,
-              Iterable<String> options) {
+          optionsViewBuilder: (
+            BuildContext context,
+            AutocompleteOnSelected<String> onSelected,
+            Iterable<String> options,
+          ) {
             return Material(
               elevation: 4.0,
               child: ListView(
diff --git a/examples/api/lib/widgets/autofill/autofill_group.0.dart b/examples/api/lib/widgets/autofill/autofill_group.0.dart
index 61b1f40..3b0c397 100644
--- a/examples/api/lib/widgets/autofill/autofill_group.0.dart
+++ b/examples/api/lib/widgets/autofill/autofill_group.0.dart
@@ -2,37 +2,34 @@
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
-// Flutter code sample for [AutofillGroup].
-
 import 'package:flutter/material.dart';
 
-void main() => runApp(const MyApp());
+/// Flutter code sample for [AutofillGroup].
 
-class MyApp extends StatelessWidget {
-  const MyApp({super.key});
+void main() => runApp(const AutofillGroupExampleApp());
 
-  static const String _title = 'Flutter Code Sample';
+class AutofillGroupExampleApp extends StatelessWidget {
+  const AutofillGroupExampleApp({super.key});
 
   @override
   Widget build(BuildContext context) {
     return MaterialApp(
-      title: _title,
       home: Scaffold(
-        appBar: AppBar(title: const Text(_title)),
-        body: const MyStatefulWidget(),
+        appBar: AppBar(title: const Text('AutofillGroup Sample')),
+        body: const AutofillGroupExample(),
       ),
     );
   }
 }
 
-class MyStatefulWidget extends StatefulWidget {
-  const MyStatefulWidget({super.key});
+class AutofillGroupExample extends StatefulWidget {
+  const AutofillGroupExample({super.key});
 
   @override
-  State<MyStatefulWidget> createState() => _MyStatefulWidgetState();
+  State<AutofillGroupExample> createState() => _AutofillGroupExampleState();
 }
 
-class _MyStatefulWidgetState extends State<MyStatefulWidget> {
+class _AutofillGroupExampleState extends State<AutofillGroupExample> {
   bool isSameAddress = true;
   final TextEditingController shippingAddress1 = TextEditingController();
   final TextEditingController shippingAddress2 = TextEditingController();
diff --git a/examples/api/lib/widgets/basic/absorb_pointer.0.dart b/examples/api/lib/widgets/basic/absorb_pointer.0.dart
index 421bb57..d18c36b 100644
--- a/examples/api/lib/widgets/basic/absorb_pointer.0.dart
+++ b/examples/api/lib/widgets/basic/absorb_pointer.0.dart
@@ -2,10 +2,10 @@
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
-// Flutter code sample for [AbsorbPointer].
-
 import 'package:flutter/material.dart';
 
+/// Flutter code sample for [AbsorbPointer].
+
 void main() => runApp(const AbsorbPointerApp());
 
 class AbsorbPointerApp extends StatelessWidget {
diff --git a/examples/api/lib/widgets/basic/aspect_ratio.0.dart b/examples/api/lib/widgets/basic/aspect_ratio.0.dart
index bde5a3b..4c4e56a 100644
--- a/examples/api/lib/widgets/basic/aspect_ratio.0.dart
+++ b/examples/api/lib/widgets/basic/aspect_ratio.0.dart
@@ -2,10 +2,10 @@
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
-// Flutter code sample for [AspectRatio].
-
 import 'package:flutter/material.dart';
 
+/// Flutter code sample for [AspectRatio].
+
 void main() => runApp(const AspectRatioApp());
 
 class AspectRatioApp extends StatelessWidget {
diff --git a/examples/api/lib/widgets/basic/aspect_ratio.1.dart b/examples/api/lib/widgets/basic/aspect_ratio.1.dart
index 500032e..a7c823e 100644
--- a/examples/api/lib/widgets/basic/aspect_ratio.1.dart
+++ b/examples/api/lib/widgets/basic/aspect_ratio.1.dart
@@ -2,10 +2,10 @@
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
-// Flutter code sample for [AspectRatio].
-
 import 'package:flutter/material.dart';
 
+/// Flutter code sample for [AspectRatio].
+
 void main() => runApp(const AspectRatioApp());
 
 class AspectRatioApp extends StatelessWidget {
diff --git a/examples/api/lib/widgets/basic/aspect_ratio.2.dart b/examples/api/lib/widgets/basic/aspect_ratio.2.dart
index 7d65983..23ec8e6 100644
--- a/examples/api/lib/widgets/basic/aspect_ratio.2.dart
+++ b/examples/api/lib/widgets/basic/aspect_ratio.2.dart
@@ -2,10 +2,10 @@
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
-// Flutter code sample for [AspectRatio].
-
 import 'package:flutter/material.dart';
 
+/// Flutter code sample for [AspectRatio].
+
 void main() => runApp(const AspectRatioApp());
 
 class AspectRatioApp extends StatelessWidget {
diff --git a/examples/api/lib/widgets/basic/clip_rrect.0.dart b/examples/api/lib/widgets/basic/clip_rrect.0.dart
index 6b7bbd9..da55a5d 100644
--- a/examples/api/lib/widgets/basic/clip_rrect.0.dart
+++ b/examples/api/lib/widgets/basic/clip_rrect.0.dart
@@ -2,10 +2,10 @@
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
-// Flutter code sample for [ClipRRect].
-
 import 'package:flutter/material.dart';
 
+/// Flutter code sample for [ClipRRect].
+
 void main() => runApp(const ClipRRectApp());
 
 class ClipRRectApp extends StatelessWidget {
diff --git a/examples/api/lib/widgets/basic/clip_rrect.1.dart b/examples/api/lib/widgets/basic/clip_rrect.1.dart
index 829f37c..686115a 100644
--- a/examples/api/lib/widgets/basic/clip_rrect.1.dart
+++ b/examples/api/lib/widgets/basic/clip_rrect.1.dart
@@ -2,10 +2,10 @@
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
-// Flutter code sample for [ClipRRect].
-
 import 'package:flutter/material.dart';
 
+/// Flutter code sample for [ClipRRect].
+
 void main() => runApp(const ClipRRectApp());
 
 class ClipRRectApp extends StatelessWidget {
diff --git a/examples/api/lib/widgets/basic/custom_multi_child_layout.0.dart b/examples/api/lib/widgets/basic/custom_multi_child_layout.0.dart
index 570b871..334cb5e 100644
--- a/examples/api/lib/widgets/basic/custom_multi_child_layout.0.dart
+++ b/examples/api/lib/widgets/basic/custom_multi_child_layout.0.dart
@@ -2,10 +2,10 @@
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
-// Flutter code sample for [CustomMultiChildLayout].
-
 import 'package:flutter/material.dart';
 
+/// Flutter code sample for [CustomMultiChildLayout].
+
 void main() => runApp(const ExampleApp());
 
 class ExampleApp extends StatelessWidget {
@@ -78,8 +78,7 @@
   // automatically cause a relayout, like any other widget.
   @override
   bool shouldRelayout(_CascadeLayoutDelegate oldDelegate) {
-    return oldDelegate.textDirection != textDirection
-        || oldDelegate.overlap != overlap;
+    return oldDelegate.textDirection != textDirection || oldDelegate.overlap != overlap;
   }
 }
 
diff --git a/examples/api/lib/widgets/basic/expanded.0.dart b/examples/api/lib/widgets/basic/expanded.0.dart
index df3c4dc..e705d4b 100644
--- a/examples/api/lib/widgets/basic/expanded.0.dart
+++ b/examples/api/lib/widgets/basic/expanded.0.dart
@@ -2,10 +2,10 @@
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
-// Flutter code sample for [Expanded].
-
 import 'package:flutter/material.dart';
 
+/// Flutter code sample for [Expanded].
+
 void main() => runApp(const ExpandedApp());
 
 class ExpandedApp extends StatelessWidget {
@@ -19,7 +19,7 @@
           title: const Text('Expanded Column Sample'),
         ),
         body: const ExpandedExample(),
-      )
+      ),
     );
   }
 }
diff --git a/examples/api/lib/widgets/basic/expanded.1.dart b/examples/api/lib/widgets/basic/expanded.1.dart
index f0cf2d6..ed0dbec 100644
--- a/examples/api/lib/widgets/basic/expanded.1.dart
+++ b/examples/api/lib/widgets/basic/expanded.1.dart
@@ -2,10 +2,10 @@
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
-// Flutter code sample for [Expanded].
-
 import 'package:flutter/material.dart';
 
+/// Flutter code sample for [Expanded].
+
 void main() => runApp(const ExpandedApp());
 
 class ExpandedApp extends StatelessWidget {
diff --git a/examples/api/lib/widgets/basic/flow.0.dart b/examples/api/lib/widgets/basic/flow.0.dart
index a31a42c..8a7c600 100644
--- a/examples/api/lib/widgets/basic/flow.0.dart
+++ b/examples/api/lib/widgets/basic/flow.0.dart
@@ -2,10 +2,10 @@
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
-// Flutter code sample for [Flow].
-
 import 'package:flutter/material.dart';
 
+/// Flutter code sample for [Flow].
+
 void main() => runApp(const FlowApp());
 
 class FlowApp extends StatelessWidget {
@@ -31,8 +31,7 @@
   State<FlowMenu> createState() => _FlowMenuState();
 }
 
-class _FlowMenuState extends State<FlowMenu>
-    with SingleTickerProviderStateMixin {
+class _FlowMenuState extends State<FlowMenu> with SingleTickerProviderStateMixin {
   late AnimationController menuAnimation;
   IconData lastTapped = Icons.notifications;
   final List<IconData> menuItems = <IconData>[
@@ -59,8 +58,7 @@
   }
 
   Widget flowMenuItem(IconData icon) {
-    final double buttonDiameter =
-        MediaQuery.of(context).size.width / menuItems.length;
+    final double buttonDiameter = MediaQuery.of(context).size.width / menuItems.length;
     return Padding(
       padding: const EdgeInsets.symmetric(vertical: 8.0),
       child: RawMaterialButton(
@@ -70,9 +68,7 @@
         constraints: BoxConstraints.tight(Size(buttonDiameter, buttonDiameter)),
         onPressed: () {
           _updateMenu(icon);
-          menuAnimation.status == AnimationStatus.completed
-              ? menuAnimation.reverse()
-              : menuAnimation.forward();
+          menuAnimation.status == AnimationStatus.completed ? menuAnimation.reverse() : menuAnimation.forward();
         },
         child: Icon(
           icon,
@@ -87,15 +83,13 @@
   Widget build(BuildContext context) {
     return Flow(
       delegate: FlowMenuDelegate(menuAnimation: menuAnimation),
-      children:
-          menuItems.map<Widget>((IconData icon) => flowMenuItem(icon)).toList(),
+      children: menuItems.map<Widget>((IconData icon) => flowMenuItem(icon)).toList(),
     );
   }
 }
 
 class FlowMenuDelegate extends FlowDelegate {
-  FlowMenuDelegate({required this.menuAnimation})
-      : super(repaint: menuAnimation);
+  FlowMenuDelegate({required this.menuAnimation}) : super(repaint: menuAnimation);
 
   final Animation<double> menuAnimation;
 
diff --git a/examples/api/lib/widgets/basic/fractionally_sized_box.0.dart b/examples/api/lib/widgets/basic/fractionally_sized_box.0.dart
index 95c5d85..34e357f 100644
--- a/examples/api/lib/widgets/basic/fractionally_sized_box.0.dart
+++ b/examples/api/lib/widgets/basic/fractionally_sized_box.0.dart
@@ -2,10 +2,10 @@
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
-// Flutter code sample for [FractionallySizedBox].
-
 import 'package:flutter/material.dart';
 
+/// Flutter code sample for [FractionallySizedBox].
+
 void main() => runApp(const FractionallySizedBoxApp());
 
 class FractionallySizedBoxApp extends StatelessWidget {
diff --git a/examples/api/lib/widgets/basic/ignore_pointer.0.dart b/examples/api/lib/widgets/basic/ignore_pointer.0.dart
index cd6452c..5c9b2c3 100644
--- a/examples/api/lib/widgets/basic/ignore_pointer.0.dart
+++ b/examples/api/lib/widgets/basic/ignore_pointer.0.dart
@@ -2,10 +2,10 @@
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
-// Flutter code sample for [IgnorePointer].
-
 import 'package:flutter/material.dart';
 
+/// Flutter code sample for [IgnorePointer].
+
 void main() => runApp(const IgnorePointerApp());
 
 class IgnorePointerApp extends StatelessWidget {
@@ -13,7 +13,7 @@
 
   @override
   Widget build(BuildContext context) {
-    return  MaterialApp(
+    return MaterialApp(
       home: Scaffold(
         appBar: AppBar(
           centerTitle: true,
diff --git a/examples/api/lib/widgets/basic/indexed_stack.0.dart b/examples/api/lib/widgets/basic/indexed_stack.0.dart
index bd5ec38..f88ab1f 100644
--- a/examples/api/lib/widgets/basic/indexed_stack.0.dart
+++ b/examples/api/lib/widgets/basic/indexed_stack.0.dart
@@ -2,10 +2,10 @@
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
-// Flutter code sample for [IndexedStack].
-
 import 'package:flutter/material.dart';
 
+/// Flutter code sample for [IndexedStack].
+
 void main() => runApp(const IndexedStackApp());
 
 class IndexedStackApp extends StatelessWidget {
@@ -76,9 +76,7 @@
               children: <Widget>[
                 IndexedStack(
                   index: index,
-                  children: <Widget>[
-                    for (String name in names) PersonTracker(name: name)
-                  ],
+                  children: <Widget>[for (String name in names) PersonTracker(name: name)],
                 )
               ],
             ),
diff --git a/examples/api/lib/widgets/basic/listener.0.dart b/examples/api/lib/widgets/basic/listener.0.dart
index 32a454a..1bddd9b 100644
--- a/examples/api/lib/widgets/basic/listener.0.dart
+++ b/examples/api/lib/widgets/basic/listener.0.dart
@@ -2,10 +2,10 @@
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
-// Flutter code sample for [Listener].
-
 import 'package:flutter/material.dart';
 
+/// Flutter code sample for [Listener].
+
 void main() => runApp(const ListenerApp());
 
 class ListenerApp extends StatelessWidget {
@@ -71,8 +71,7 @@
           child: Column(
             mainAxisAlignment: MainAxisAlignment.center,
             children: <Widget>[
-              const Text(
-                  'You have pressed or released in this area this many times:'),
+              const Text('You have pressed or released in this area this many times:'),
               Text(
                 '$_downCounter presses\n$_upCounter releases',
                 style: Theme.of(context).textTheme.headlineMedium,
diff --git a/examples/api/lib/widgets/basic/mouse_region.0.dart b/examples/api/lib/widgets/basic/mouse_region.0.dart
index 1164ae3..253eeff 100644
--- a/examples/api/lib/widgets/basic/mouse_region.0.dart
+++ b/examples/api/lib/widgets/basic/mouse_region.0.dart
@@ -2,10 +2,10 @@
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
-// Flutter code sample for [MouseRegion].
-
 import 'package:flutter/material.dart';
 
+/// Flutter code sample for [MouseRegion].
+
 void main() => runApp(const MouseRegionApp());
 
 class MouseRegionApp extends StatelessWidget {
@@ -69,8 +69,7 @@
           child: Column(
             mainAxisAlignment: MainAxisAlignment.center,
             children: <Widget>[
-              const Text(
-                  'You have entered or exited this box this many times:'),
+              const Text('You have entered or exited this box this many times:'),
               Text(
                 '$_enterCounter Entries\n$_exitCounter Exits',
                 style: Theme.of(context).textTheme.headlineMedium,
diff --git a/examples/api/lib/widgets/basic/mouse_region.on_exit.0.dart b/examples/api/lib/widgets/basic/mouse_region.on_exit.0.dart
index bbfe0ac..2ee0b41 100644
--- a/examples/api/lib/widgets/basic/mouse_region.on_exit.0.dart
+++ b/examples/api/lib/widgets/basic/mouse_region.on_exit.0.dart
@@ -2,10 +2,10 @@
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
-// Flutter code sample for [MouseRegion.onExit].
-
 import 'package:flutter/material.dart';
 
+/// Flutter code sample for [MouseRegion.onExit].
+
 void main() => runApp(const MouseRegionApp());
 
 class MouseRegionApp extends StatelessWidget {
diff --git a/examples/api/lib/widgets/basic/mouse_region.on_exit.1.dart b/examples/api/lib/widgets/basic/mouse_region.on_exit.1.dart
index 1a3773b..4c06781 100644
--- a/examples/api/lib/widgets/basic/mouse_region.on_exit.1.dart
+++ b/examples/api/lib/widgets/basic/mouse_region.on_exit.1.dart
@@ -2,10 +2,10 @@
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
-// Flutter code sample for [MouseRegion.onExit].
-
 import 'package:flutter/material.dart';
 
+/// Flutter code sample for [MouseRegion.onExit].
+
 void main() => runApp(const MouseRegionApp());
 
 class MouseRegionApp extends StatelessWidget {
@@ -26,8 +26,7 @@
 
 // A region that hides its content one second after being hovered.
 class MyTimedButton extends StatefulWidget {
-  const MyTimedButton(
-      {super.key, required this.onEnterButton, required this.onExitButton});
+  const MyTimedButton({super.key, required this.onEnterButton, required this.onExitButton});
 
   final VoidCallback onEnterButton;
   final VoidCallback onExitButton;
@@ -62,23 +61,23 @@
       height: 100,
       child: MouseRegion(
         child: regionIsHidden
-          ? null
-          : MouseRegion(
-              onEnter: (_) {
-                widget.onEnterButton();
-                setState(() {
-                  hovered = true;
-                });
-                startCountdown();
-              },
-              onExit: (_) {
-                setState(() {
-                  hovered = false;
-                });
-                widget.onExitButton();
-              },
-              child: Container(color: Colors.red),
-            ),
+            ? null
+            : MouseRegion(
+                onEnter: (_) {
+                  widget.onEnterButton();
+                  setState(() {
+                    hovered = true;
+                  });
+                  startCountdown();
+                },
+                onExit: (_) {
+                  setState(() {
+                    hovered = false;
+                  });
+                  widget.onExitButton();
+                },
+                child: Container(color: Colors.red),
+              ),
       ),
     );
   }
diff --git a/examples/api/lib/widgets/basic/offstage.0.dart b/examples/api/lib/widgets/basic/offstage.0.dart
index dc843ca..ee9e333 100644
--- a/examples/api/lib/widgets/basic/offstage.0.dart
+++ b/examples/api/lib/widgets/basic/offstage.0.dart
@@ -2,10 +2,10 @@
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
-// Flutter code sample for [Offstage].
-
 import 'package:flutter/material.dart';
 
+/// Flutter code sample for [Offstage].
+
 void main() => runApp(const OffstageApp());
 
 class OffstageApp extends StatelessWidget {
@@ -36,8 +36,7 @@
   bool _offstage = true;
 
   Size _getFlutterLogoSize() {
-    final RenderBox renderLogo =
-        _key.currentContext!.findRenderObject()! as RenderBox;
+    final RenderBox renderLogo = _key.currentContext!.findRenderObject()! as RenderBox;
     return renderLogo.size;
   }
 
@@ -68,8 +67,7 @@
               onPressed: () {
                 ScaffoldMessenger.of(context).showSnackBar(
                   SnackBar(
-                    content:
-                        Text('Flutter Logo size is ${_getFlutterLogoSize()}'),
+                    content: Text('Flutter Logo size is ${_getFlutterLogoSize()}'),
                   ),
                 );
               }),
diff --git a/examples/api/lib/widgets/basic/overflowbox.0.dart b/examples/api/lib/widgets/basic/overflowbox.0.dart
index 626ebab..3d4c7bf 100644
--- a/examples/api/lib/widgets/basic/overflowbox.0.dart
+++ b/examples/api/lib/widgets/basic/overflowbox.0.dart
@@ -2,10 +2,10 @@
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
-// Flutter code sample for [OverflowBox].
-
 import 'package:flutter/material.dart';
 
+/// Flutter code sample for [OverflowBox].
+
 void main() => runApp(const OverflowBoxApp());
 
 class OverflowBoxApp extends StatelessWidget {
diff --git a/examples/api/lib/widgets/basic/physical_shape.0.dart b/examples/api/lib/widgets/basic/physical_shape.0.dart
index aaf0bd4..e9ec143 100644
--- a/examples/api/lib/widgets/basic/physical_shape.0.dart
+++ b/examples/api/lib/widgets/basic/physical_shape.0.dart
@@ -2,10 +2,10 @@
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
-// Flutter code sample for [PhysicalShape].
-
 import 'package:flutter/material.dart';
 
+/// Flutter code sample for [PhysicalShape].
+
 void main() => runApp(const PhysicalShapeApp());
 
 class PhysicalShapeApp extends StatelessWidget {
diff --git a/examples/api/lib/widgets/binding/widget_binding_observer.0.dart b/examples/api/lib/widgets/binding/widget_binding_observer.0.dart
index 0a2f606..e7076c2 100644
--- a/examples/api/lib/widgets/binding/widget_binding_observer.0.dart
+++ b/examples/api/lib/widgets/binding/widget_binding_observer.0.dart
@@ -2,14 +2,14 @@
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
-// Flutter code sample for [WidgetBindingsObserver].
-
 import 'package:flutter/material.dart';
 
-void main() => runApp(const MyApp());
+/// Flutter code sample for [WidgetBindingsObserver].
 
-class MyApp extends StatelessWidget {
-  const MyApp({super.key});
+void main() => runApp(const WidgetBindingObserverExampleApp());
+
+class WidgetBindingObserverExampleApp extends StatelessWidget {
+  const WidgetBindingObserverExampleApp({super.key});
 
   @override
   Widget build(BuildContext context) {
@@ -30,20 +30,22 @@
 }
 
 class _WidgetBindingsObserverSampleState extends State<WidgetBindingsObserverSample> with WidgetsBindingObserver {
- final List<AppLifecycleState> _stateHistoryList = <AppLifecycleState>[];
+  final List<AppLifecycleState> _stateHistoryList = <AppLifecycleState>[];
 
   @override
   void initState() {
     super.initState();
     WidgetsBinding.instance.addObserver(this);
-    if(WidgetsBinding.instance.lifecycleState != null) {
+    if (WidgetsBinding.instance.lifecycleState != null) {
       _stateHistoryList.add(WidgetsBinding.instance.lifecycleState!);
     }
   }
 
   @override
   void didChangeAppLifecycleState(AppLifecycleState state) {
-    setState(() { _stateHistoryList.add(state); });
+    setState(() {
+      _stateHistoryList.add(state);
+    });
   }
 
   @override
@@ -59,9 +61,9 @@
         key: const ValueKey<String>('stateHistoryList'),
         itemCount: _stateHistoryList.length,
         itemBuilder: (BuildContext context, int index) {
-            return Text('state is: ${_stateHistoryList[index]}');
-          },
-        );
+          return Text('state is: ${_stateHistoryList[index]}');
+        },
+      );
     }
 
     return const Center(child: Text('There are no AppLifecycleStates to show.'));
diff --git a/examples/api/lib/widgets/color_filter/color_filtered.0.dart b/examples/api/lib/widgets/color_filter/color_filtered.0.dart
index 50158de..59d8203 100644
--- a/examples/api/lib/widgets/color_filter/color_filtered.0.dart
+++ b/examples/api/lib/widgets/color_filter/color_filtered.0.dart
@@ -2,31 +2,28 @@
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
-// Flutter code sample for [ColorFiltered].
-
 import 'package:flutter/material.dart';
 
-void main() => runApp(const MyApp());
+/// Flutter code sample for [ColorFiltered].
 
-class MyApp extends StatelessWidget {
-  const MyApp({super.key});
+void main() => runApp(const ColorFilteredExampleApp());
 
-  static const String _title = 'Flutter Code Sample';
+class ColorFilteredExampleApp extends StatelessWidget {
+  const ColorFilteredExampleApp({super.key});
 
   @override
   Widget build(BuildContext context) {
     return MaterialApp(
-      title: _title,
       home: Scaffold(
-        appBar: AppBar(title: const Text(_title)),
-        body: const MyStatelessWidget(),
+        appBar: AppBar(title: const Text('ColorFiltered Sample')),
+        body: const ColorFilteredExample(),
       ),
     );
   }
 }
 
-class MyStatelessWidget extends StatelessWidget {
-  const MyStatelessWidget({super.key});
+class ColorFilteredExample extends StatelessWidget {
+  const ColorFilteredExample({super.key});
 
   @override
   Widget build(BuildContext context) {
diff --git a/examples/api/lib/widgets/dismissible/dismissible.0.dart b/examples/api/lib/widgets/dismissible/dismissible.0.dart
index 5cb896e..c148063 100644
--- a/examples/api/lib/widgets/dismissible/dismissible.0.dart
+++ b/examples/api/lib/widgets/dismissible/dismissible.0.dart
@@ -2,37 +2,34 @@
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
-// Flutter code sample for [Dismissible].
-
 import 'package:flutter/material.dart';
 
-void main() => runApp(const MyApp());
+/// Flutter code sample for [Dismissible].
 
-class MyApp extends StatelessWidget {
-  const MyApp({super.key});
+void main() => runApp(const DismissibleExampleApp());
 
-  static const String _title = 'Flutter Code Sample';
+class DismissibleExampleApp extends StatelessWidget {
+  const DismissibleExampleApp({super.key});
 
   @override
   Widget build(BuildContext context) {
     return MaterialApp(
-      title: _title,
       home: Scaffold(
-        appBar: AppBar(title: const Text(_title)),
-        body: const MyStatefulWidget(),
+        appBar: AppBar(title: const Text('Dismissible Sample')),
+        body: const DismissibleExample(),
       ),
     );
   }
 }
 
-class MyStatefulWidget extends StatefulWidget {
-  const MyStatefulWidget({super.key});
+class DismissibleExample extends StatefulWidget {
+  const DismissibleExample({super.key});
 
   @override
-  State<MyStatefulWidget> createState() => _MyStatefulWidgetState();
+  State<DismissibleExample> createState() => _DismissibleExampleState();
 }
 
-class _MyStatefulWidgetState extends State<MyStatefulWidget> {
+class _DismissibleExampleState extends State<DismissibleExample> {
   List<int> items = List<int>.generate(100, (int index) => index);
 
   @override
diff --git a/examples/api/lib/widgets/drag_target/draggable.0.dart b/examples/api/lib/widgets/drag_target/draggable.0.dart
index 641beaf..2d8914a 100644
--- a/examples/api/lib/widgets/drag_target/draggable.0.dart
+++ b/examples/api/lib/widgets/drag_target/draggable.0.dart
@@ -2,37 +2,34 @@
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
-// Flutter code sample for [Draggable].
-
 import 'package:flutter/material.dart';
 
-void main() => runApp(const MyApp());
+/// Flutter code sample for [Draggable].
 
-class MyApp extends StatelessWidget {
-  const MyApp({super.key});
+void main() => runApp(const DraggableExampleApp());
 
-  static const String _title = 'Flutter Code Sample';
+class DraggableExampleApp extends StatelessWidget {
+  const DraggableExampleApp({super.key});
 
   @override
   Widget build(BuildContext context) {
     return MaterialApp(
-      title: _title,
       home: Scaffold(
-        appBar: AppBar(title: const Text(_title)),
-        body: const MyStatefulWidget(),
+        appBar: AppBar(title: const Text('Draggable Sample')),
+        body: const DraggableExample(),
       ),
     );
   }
 }
 
-class MyStatefulWidget extends StatefulWidget {
-  const MyStatefulWidget({super.key});
+class DraggableExample extends StatefulWidget {
+  const DraggableExample({super.key});
 
   @override
-  State<MyStatefulWidget> createState() => _MyStatefulWidgetState();
+  State<DraggableExample> createState() => _DraggableExampleState();
 }
 
-class _MyStatefulWidgetState extends State<MyStatefulWidget> {
+class _DraggableExampleState extends State<DraggableExample> {
   int acceptedData = 0;
 
   @override
diff --git a/examples/api/lib/widgets/editable_text/editable_text.on_changed.0.dart b/examples/api/lib/widgets/editable_text/editable_text.on_changed.0.dart
index eef91e9..9c12a0e 100644
--- a/examples/api/lib/widgets/editable_text/editable_text.on_changed.0.dart
+++ b/examples/api/lib/widgets/editable_text/editable_text.on_changed.0.dart
@@ -2,34 +2,31 @@
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
-// Flutter code sample for [EditableText.onChanged].
-
 import 'package:flutter/material.dart';
 
-void main() => runApp(const MyApp());
+/// Flutter code sample for [EditableText.onChanged].
 
-class MyApp extends StatelessWidget {
-  const MyApp({super.key});
+void main() => runApp(const OnChangedExampleApp());
 
-  static const String _title = 'Flutter Code Sample';
+class OnChangedExampleApp extends StatelessWidget {
+  const OnChangedExampleApp({super.key});
 
   @override
   Widget build(BuildContext context) {
     return const MaterialApp(
-      title: _title,
-      home: MyStatefulWidget(),
+      home: OnChangedExample(),
     );
   }
 }
 
-class MyStatefulWidget extends StatefulWidget {
-  const MyStatefulWidget({super.key});
+class OnChangedExample extends StatefulWidget {
+  const OnChangedExample({super.key});
 
   @override
-  State<MyStatefulWidget> createState() => _MyStatefulWidgetState();
+  State<OnChangedExample> createState() => _OnChangedExampleState();
 }
 
-class _MyStatefulWidgetState extends State<MyStatefulWidget> {
+class _OnChangedExampleState extends State<OnChangedExample> {
   final TextEditingController _controller = TextEditingController();
 
   @override
diff --git a/examples/api/lib/widgets/editable_text/editable_text.on_content_inserted.0.dart b/examples/api/lib/widgets/editable_text/editable_text.on_content_inserted.0.dart
index 7334621..86ca154 100644
--- a/examples/api/lib/widgets/editable_text/editable_text.on_content_inserted.0.dart
+++ b/examples/api/lib/widgets/editable_text/editable_text.on_content_inserted.0.dart
@@ -2,23 +2,20 @@
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
-// Flutter code sample for EditableText.onContentInserted
-
 import 'dart:typed_data';
 
 import 'package:flutter/material.dart';
 
+/// Flutter code sample for [EditableText.onContentInserted].
+
 void main() => runApp(const KeyboardInsertedContentApp());
 
 class KeyboardInsertedContentApp extends StatelessWidget {
   const KeyboardInsertedContentApp({super.key});
 
-  static const String _title = 'Keyboard Inserted Content Sample';
-
   @override
   Widget build(BuildContext context) {
     return const MaterialApp(
-      title: _title,
       home: KeyboardInsertedContentDemo(),
     );
   }
@@ -62,10 +59,8 @@
               },
             ),
           ),
-          if (bytes != null)
-            const Text("Here's the most recently inserted content:"),
-          if (bytes != null)
-            Image.memory(bytes!),
+          if (bytes != null) const Text("Here's the most recently inserted content:"),
+          if (bytes != null) Image.memory(bytes!),
         ],
       ),
     );
diff --git a/examples/api/lib/widgets/editable_text/text_editing_controller.0.dart b/examples/api/lib/widgets/editable_text/text_editing_controller.0.dart
index f0b4355..a9837dc 100644
--- a/examples/api/lib/widgets/editable_text/text_editing_controller.0.dart
+++ b/examples/api/lib/widgets/editable_text/text_editing_controller.0.dart
@@ -2,34 +2,31 @@
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
-// Flutter code sample for [TextEditingController].
-
 import 'package:flutter/material.dart';
 
-void main() => runApp(const MyApp());
+/// Flutter code sample for [TextEditingController].
 
-class MyApp extends StatelessWidget {
-  const MyApp({super.key});
+void main() => runApp(const TextEditingControllerExampleApp());
 
-  static const String _title = 'Flutter Code Sample';
+class TextEditingControllerExampleApp extends StatelessWidget {
+  const TextEditingControllerExampleApp({super.key});
 
   @override
   Widget build(BuildContext context) {
     return const MaterialApp(
-      title: _title,
-      home: MyStatefulWidget(),
+      home: TextEditingControllerExample(),
     );
   }
 }
 
-class MyStatefulWidget extends StatefulWidget {
-  const MyStatefulWidget({super.key});
+class TextEditingControllerExample extends StatefulWidget {
+  const TextEditingControllerExample({super.key});
 
   @override
-  State<MyStatefulWidget> createState() => _MyStatefulWidgetState();
+  State<TextEditingControllerExample> createState() => _TextEditingControllerExampleState();
 }
 
-class _MyStatefulWidgetState extends State<MyStatefulWidget> {
+class _TextEditingControllerExampleState extends State<TextEditingControllerExample> {
   final TextEditingController _controller = TextEditingController();
 
   @override
@@ -39,8 +36,7 @@
       final String text = _controller.text.toLowerCase();
       _controller.value = _controller.value.copyWith(
         text: text,
-        selection:
-            TextSelection(baseOffset: text.length, extentOffset: text.length),
+        selection: TextSelection(baseOffset: text.length, extentOffset: text.length),
         composing: TextRange.empty,
       );
     });
diff --git a/examples/api/lib/widgets/focus_manager/focus_node.0.dart b/examples/api/lib/widgets/focus_manager/focus_node.0.dart
index aaaf2a9..8069a7e 100644
--- a/examples/api/lib/widgets/focus_manager/focus_node.0.dart
+++ b/examples/api/lib/widgets/focus_manager/focus_node.0.dart
@@ -2,25 +2,22 @@
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
-// Flutter code sample for [FocusNode].
-
 import 'package:flutter/material.dart';
 import 'package:flutter/services.dart';
 
-void main() => runApp(const MyApp());
+/// Flutter code sample for [FocusNode].
 
-class MyApp extends StatelessWidget {
-  const MyApp({super.key});
+void main() => runApp(const FocusNodeExampleApp());
 
-  static const String _title = 'Flutter Code Sample';
+class FocusNodeExampleApp extends StatelessWidget {
+  const FocusNodeExampleApp({super.key});
 
   @override
   Widget build(BuildContext context) {
     return MaterialApp(
-      title: _title,
       home: Scaffold(
-        appBar: AppBar(title: const Text(_title)),
-        body: const MyStatelessWidget(),
+        appBar: AppBar(title: const Text('FocusNode Sample')),
+        body: const FocusNodeExample(),
       ),
     );
   }
@@ -106,16 +103,15 @@
           height: 100,
           color: _focused ? _color : Colors.white,
           alignment: Alignment.center,
-          child:
-              Text(_focused ? "I'm in color! Press R,G,B!" : 'Press to focus'),
+          child: Text(_focused ? "I'm in color! Press R,G,B!" : 'Press to focus'),
         ),
       ),
     );
   }
 }
 
-class MyStatelessWidget extends StatelessWidget {
-  const MyStatelessWidget({super.key});
+class FocusNodeExample extends StatelessWidget {
+  const FocusNodeExample({super.key});
 
   @override
   Widget build(BuildContext context) {
diff --git a/examples/api/lib/widgets/focus_manager/focus_node.unfocus.0.dart b/examples/api/lib/widgets/focus_manager/focus_node.unfocus.0.dart
index 8e57aca..e568bc2 100644
--- a/examples/api/lib/widgets/focus_manager/focus_node.unfocus.0.dart
+++ b/examples/api/lib/widgets/focus_manager/focus_node.unfocus.0.dart
@@ -2,35 +2,31 @@
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
-// Flutter code sample for [FocusNode.unfocus].
-
-
 import 'package:flutter/material.dart';
 
-void main() => runApp(const MyApp());
+/// Flutter code sample for [FocusNode.unfocus].
 
-class MyApp extends StatelessWidget {
-  const MyApp({super.key});
+void main() => runApp(const UnfocusExampleApp());
 
-  static const String _title = 'Flutter Code Sample';
+class UnfocusExampleApp extends StatelessWidget {
+  const UnfocusExampleApp({super.key});
 
   @override
   Widget build(BuildContext context) {
     return const MaterialApp(
-      title: _title,
-      home: MyStatefulWidget(),
+      home: UnfocusExample(),
     );
   }
 }
 
-class MyStatefulWidget extends StatefulWidget {
-  const MyStatefulWidget({super.key});
+class UnfocusExample extends StatefulWidget {
+  const UnfocusExample({super.key});
 
   @override
-  State<MyStatefulWidget> createState() => _MyStatefulWidgetState();
+  State<UnfocusExample> createState() => _UnfocusExampleState();
 }
 
-class _MyStatefulWidgetState extends State<MyStatefulWidget> {
+class _UnfocusExampleState extends State<UnfocusExample> {
   UnfocusDisposition disposition = UnfocusDisposition.scope;
 
   @override
@@ -57,8 +53,7 @@
             Row(
               mainAxisAlignment: MainAxisAlignment.spaceAround,
               children: <Widget>[
-                ...List<Widget>.generate(UnfocusDisposition.values.length,
-                    (int index) {
+                ...List<Widget>.generate(UnfocusDisposition.values.length, (int index) {
                   return Row(
                     mainAxisSize: MainAxisSize.min,
                     children: <Widget>[
diff --git a/examples/api/lib/widgets/focus_scope/focus.0.dart b/examples/api/lib/widgets/focus_scope/focus.0.dart
index 4defbdf..f62d5de 100644
--- a/examples/api/lib/widgets/focus_scope/focus.0.dart
+++ b/examples/api/lib/widgets/focus_scope/focus.0.dart
@@ -2,38 +2,35 @@
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
-// Flutter code sample for [Focus].
-
 import 'package:flutter/material.dart';
 import 'package:flutter/services.dart';
 
-void main() => runApp(const MyApp());
+/// Flutter code sample for [Focus].
 
-class MyApp extends StatelessWidget {
-  const MyApp({super.key});
+void main() => runApp(const FocusExampleApp());
 
-  static const String _title = 'Flutter Code Sample';
+class FocusExampleApp extends StatelessWidget {
+  const FocusExampleApp({super.key});
 
   @override
   Widget build(BuildContext context) {
     return MaterialApp(
-      title: _title,
       home: Scaffold(
-        appBar: AppBar(title: const Text(_title)),
-        body: const MyStatefulWidget(),
+        appBar: AppBar(title: const Text('Focus Sample')),
+        body: const FocusExample(),
       ),
     );
   }
 }
 
-class MyStatefulWidget extends StatefulWidget {
-  const MyStatefulWidget({super.key});
+class FocusExample extends StatefulWidget {
+  const FocusExample({super.key});
 
   @override
-  State<MyStatefulWidget> createState() => _MyStatefulWidgetState();
+  State<FocusExample> createState() => _FocusExampleState();
 }
 
-class _MyStatefulWidgetState extends State<MyStatefulWidget> {
+class _FocusExampleState extends State<FocusExample> {
   Color _color = Colors.white;
 
   KeyEventResult _handleKeyPress(FocusNode node, RawKeyEvent event) {
@@ -91,9 +88,7 @@
                     height: 100,
                     alignment: Alignment.center,
                     color: hasFocus ? _color : Colors.white,
-                    child: Text(hasFocus
-                        ? "I'm in color! Press R,G,B!"
-                        : 'Press to focus'),
+                    child: Text(hasFocus ? "I'm in color! Press R,G,B!" : 'Press to focus'),
                   ),
                 ),
               );
diff --git a/examples/api/lib/widgets/focus_scope/focus.1.dart b/examples/api/lib/widgets/focus_scope/focus.1.dart
index ed6f46e..8bbe090 100644
--- a/examples/api/lib/widgets/focus_scope/focus.1.dart
+++ b/examples/api/lib/widgets/focus_scope/focus.1.dart
@@ -2,22 +2,19 @@
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
-// Flutter code sample for [Focus].
-
 import 'package:flutter/material.dart';
 
-void main() => runApp(const MyApp());
+/// Flutter code sample for [Focus].
 
-class MyApp extends StatelessWidget {
-  const MyApp({super.key});
+void main() => runApp(const FocusExampleApp());
 
-  static const String _title = 'Flutter Code Sample';
+class FocusExampleApp extends StatelessWidget {
+  const FocusExampleApp({super.key});
 
   @override
   Widget build(BuildContext context) {
     return const MaterialApp(
-      title: _title,
-      home: MyStatelessWidget(),
+      home: FocusExample(),
     );
   }
 }
@@ -58,8 +55,8 @@
   }
 }
 
-class MyStatelessWidget extends StatelessWidget {
-  const MyStatelessWidget({super.key});
+class FocusExample extends StatelessWidget {
+  const FocusExample({super.key});
 
   @override
   Widget build(BuildContext context) {
diff --git a/examples/api/lib/widgets/focus_scope/focus.2.dart b/examples/api/lib/widgets/focus_scope/focus.2.dart
index 53876c5..4451b3d 100644
--- a/examples/api/lib/widgets/focus_scope/focus.2.dart
+++ b/examples/api/lib/widgets/focus_scope/focus.2.dart
@@ -2,34 +2,31 @@
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
-// Flutter code sample for [Focus].
-
 import 'package:flutter/material.dart';
 
-void main() => runApp(const MyApp());
+/// Flutter code sample for [Focus].
 
-class MyApp extends StatelessWidget {
-  const MyApp({super.key});
+void main() => runApp(const FocusExampleApp());
 
-  static const String _title = 'Flutter Code Sample';
+class FocusExampleApp extends StatelessWidget {
+  const FocusExampleApp({super.key});
 
   @override
   Widget build(BuildContext context) {
     return const MaterialApp(
-      title: _title,
-      home: MyStatefulWidget(),
+      home: FocusExample(),
     );
   }
 }
 
-class MyStatefulWidget extends StatefulWidget {
-  const MyStatefulWidget({super.key});
+class FocusExample extends StatefulWidget {
+  const FocusExample({super.key});
 
   @override
-  State<MyStatefulWidget> createState() => _MyStatefulWidgetState();
+  State<FocusExample> createState() => _FocusExampleState();
 }
 
-class _MyStatefulWidgetState extends State<MyStatefulWidget> {
+class _FocusExampleState extends State<FocusExample> {
   int focusedChild = 0;
   List<Widget> children = <Widget>[];
   List<FocusNode> childFocusNodes = <FocusNode>[];
@@ -52,8 +49,7 @@
   void _addChild() {
     // Calling requestFocus here creates a deferred request for focus, since the
     // node is not yet part of the focus tree.
-    childFocusNodes
-        .add(FocusNode(debugLabel: 'Child ${children.length}')..requestFocus());
+    childFocusNodes.add(FocusNode(debugLabel: 'Child ${children.length}')..requestFocus());
 
     children.add(Padding(
       padding: const EdgeInsets.all(2.0),
diff --git a/examples/api/lib/widgets/focus_scope/focus_scope.0.dart b/examples/api/lib/widgets/focus_scope/focus_scope.0.dart
index 5383d68..20f4c90 100644
--- a/examples/api/lib/widgets/focus_scope/focus_scope.0.dart
+++ b/examples/api/lib/widgets/focus_scope/focus_scope.0.dart
@@ -2,22 +2,19 @@
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
-// Flutter code sample for [FocusScope].
-
 import 'package:flutter/material.dart';
 
-void main() => runApp(const MyApp());
+/// Flutter code sample for [FocusScope].
 
-class MyApp extends StatelessWidget {
-  const MyApp({super.key});
+void main() => runApp(const FocusScopeExampleApp());
 
-  static const String _title = 'Flutter Code Sample';
+class FocusScopeExampleApp extends StatelessWidget {
+  const FocusScopeExampleApp({super.key});
 
   @override
   Widget build(BuildContext context) {
     return const MaterialApp(
-      title: _title,
-      home: MyStatefulWidget(),
+      home: FocusScopeExample(),
     );
   }
 }
@@ -66,14 +63,14 @@
   }
 }
 
-class MyStatefulWidget extends StatefulWidget {
-  const MyStatefulWidget({super.key});
+class FocusScopeExample extends StatefulWidget {
+  const FocusScopeExample({super.key});
 
   @override
-  State<MyStatefulWidget> createState() => _MyStatefulWidgetState();
+  State<FocusScopeExample> createState() => _FocusScopeExampleState();
 }
 
-class _MyStatefulWidgetState extends State<MyStatefulWidget> {
+class _FocusScopeExampleState extends State<FocusScopeExample> {
   bool backdropIsVisible = false;
   FocusNode backdropNode = FocusNode(debugLabel: 'Close Backdrop Button');
   FocusNode foregroundNode = FocusNode(debugLabel: 'Option Button');
@@ -119,8 +116,9 @@
                   child: const Text('ANOTHER BUTTON TO FOCUS'),
                 ),
                 DefaultTextStyle(
-                    style: Theme.of(context).textTheme.displayMedium!,
-                    child: const Text('BACKDROP')),
+                  style: Theme.of(context).textTheme.displayMedium!,
+                  child: const Text('BACKDROP'),
+                ),
               ],
             ),
           ),
@@ -144,12 +142,11 @@
             // TRY THIS: Try changing this to Colors.green.withOpacity(0.8) to see for
             // yourself that the hidden components do/don't get focus.
             backgroundColor: Colors.green,
-            onPressed: backdropIsVisible
-                ? null
-                : () => setState(() => backdropIsVisible = true),
+            onPressed: backdropIsVisible ? null : () => setState(() => backdropIsVisible = true),
             child: DefaultTextStyle(
-                style: Theme.of(context).textTheme.displayMedium!,
-                child: const Text('FOREGROUND')),
+              style: Theme.of(context).textTheme.displayMedium!,
+              child: const Text('FOREGROUND'),
+            ),
           ),
         ),
       ],
diff --git a/examples/api/lib/widgets/focus_traversal/focus_traversal_group.0.dart b/examples/api/lib/widgets/focus_traversal/focus_traversal_group.0.dart
index cf9770a..818eb2a 100644
--- a/examples/api/lib/widgets/focus_traversal/focus_traversal_group.0.dart
+++ b/examples/api/lib/widgets/focus_traversal/focus_traversal_group.0.dart
@@ -2,22 +2,19 @@
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
-// Flutter code sample for [FocusTraversalGroup].
-
 import 'package:flutter/material.dart';
 
-void main() => runApp(const MyApp());
+/// Flutter code sample for [FocusTraversalGroup].
 
-class MyApp extends StatelessWidget {
-  const MyApp({super.key});
+void main() => runApp(const FocusTraversalGroupExampleApp());
 
-  static const String _title = 'Flutter Code Sample';
+class FocusTraversalGroupExampleApp extends StatelessWidget {
+  const FocusTraversalGroupExampleApp({super.key});
 
   @override
   Widget build(BuildContext context) {
     return const MaterialApp(
-      title: _title,
-      home: MyStatelessWidget(),
+      home: FocusTraversalGroupExample(),
     );
   }
 }
@@ -92,8 +89,7 @@
     }
 
     Color? foregroundColor(Set<MaterialState> states) {
-      if (states.contains(MaterialState.focused) ||
-          states.contains(MaterialState.hovered)) {
+      if (states.contains(MaterialState.focused) || states.contains(MaterialState.hovered)) {
         return Colors.white;
       }
       return null; // defer to the default foregroundColor
@@ -107,10 +103,8 @@
           focusNode: focusNode,
           autofocus: widget.autofocus,
           style: ButtonStyle(
-            overlayColor:
-                MaterialStateProperty.resolveWith<Color?>(overlayColor),
-            foregroundColor:
-                MaterialStateProperty.resolveWith<Color?>(foregroundColor),
+            overlayColor: MaterialStateProperty.resolveWith<Color?>(overlayColor),
+            foregroundColor: MaterialStateProperty.resolveWith<Color?>(foregroundColor),
           ),
           onPressed: () => _handleOnPressed(),
           child: Text(widget.name),
@@ -120,8 +114,8 @@
   }
 }
 
-class MyStatelessWidget extends StatelessWidget {
-  const MyStatelessWidget({super.key});
+class FocusTraversalGroupExample extends StatelessWidget {
+  const FocusTraversalGroupExample({super.key});
 
   @override
   Widget build(BuildContext context) {
@@ -153,8 +147,7 @@
                 mainAxisAlignment: MainAxisAlignment.center,
                 children: List<Widget>.generate(3, (int index) {
                   // Order as "C" "B", "A".
-                  final String order =
-                      String.fromCharCode('A'.codeUnitAt(0) + (2 - index));
+                  final String order = String.fromCharCode('A'.codeUnitAt(0) + (2 - index));
                   return OrderedButton<String>(
                     name: 'String: $order',
                     order: order,
diff --git a/examples/api/lib/widgets/focus_traversal/ordered_traversal_policy.0.dart b/examples/api/lib/widgets/focus_traversal/ordered_traversal_policy.0.dart
index b9e0c02..62f14f1 100644
--- a/examples/api/lib/widgets/focus_traversal/ordered_traversal_policy.0.dart
+++ b/examples/api/lib/widgets/focus_traversal/ordered_traversal_policy.0.dart
@@ -2,25 +2,22 @@
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
-// Flutter code sample for [OrderedTraversalPolicy].
-
 import 'package:flutter/material.dart';
 
-void main() => runApp(const MyApp());
+/// Flutter code sample for [OrderedTraversalPolicy].
 
-class MyApp extends StatelessWidget {
-  const MyApp({super.key});
+void main() => runApp(const OrderedTraversalPolicyExampleApp());
 
-  static const String _title = 'Flutter Code Sample';
+class OrderedTraversalPolicyExampleApp extends StatelessWidget {
+  const OrderedTraversalPolicyExampleApp({super.key});
 
   @override
   Widget build(BuildContext context) {
     return MaterialApp(
-      title: _title,
       home: Scaffold(
-        appBar: AppBar(title: const Text(_title)),
+        appBar: AppBar(title: const Text('OrderedTraversalPolicy Sample')),
         body: const Center(
-          child: MyStatelessWidget(),
+          child: OrderedTraversalPolicyExample(),
         ),
       ),
     );
@@ -57,8 +54,8 @@
   }
 }
 
-class MyStatelessWidget extends StatelessWidget {
-  const MyStatelessWidget({super.key});
+class OrderedTraversalPolicyExample extends StatelessWidget {
+  const OrderedTraversalPolicyExample({super.key});
 
   @override
   Widget build(BuildContext context) {
diff --git a/examples/api/lib/widgets/form/form.0.dart b/examples/api/lib/widgets/form/form.0.dart
index e82291d..18b50c9 100644
--- a/examples/api/lib/widgets/form/form.0.dart
+++ b/examples/api/lib/widgets/form/form.0.dart
@@ -2,37 +2,34 @@
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
-// Flutter code sample for [Form].
-
 import 'package:flutter/material.dart';
 
-void main() => runApp(const MyApp());
+/// Flutter code sample for [Form].
 
-class MyApp extends StatelessWidget {
-  const MyApp({super.key});
+void main() => runApp(const FormExampleApp());
 
-  static const String _title = 'Flutter Code Sample';
+class FormExampleApp extends StatelessWidget {
+  const FormExampleApp({super.key});
 
   @override
   Widget build(BuildContext context) {
     return MaterialApp(
-      title: _title,
       home: Scaffold(
-        appBar: AppBar(title: const Text(_title)),
-        body: const MyStatefulWidget(),
+        appBar: AppBar(title: const Text('Form Sample')),
+        body: const FormExample(),
       ),
     );
   }
 }
 
-class MyStatefulWidget extends StatefulWidget {
-  const MyStatefulWidget({super.key});
+class FormExample extends StatefulWidget {
+  const FormExample({super.key});
 
   @override
-  State<MyStatefulWidget> createState() => _MyStatefulWidgetState();
+  State<FormExample> createState() => _FormExampleState();
 }
 
-class _MyStatefulWidgetState extends State<MyStatefulWidget> {
+class _FormExampleState extends State<FormExample> {
   final GlobalKey<FormState> _formKey = GlobalKey<FormState>();
 
   @override
diff --git a/examples/api/lib/widgets/framework/build_owner.0.dart b/examples/api/lib/widgets/framework/build_owner.0.dart
index 1bca301..ab17390 100644
--- a/examples/api/lib/widgets/framework/build_owner.0.dart
+++ b/examples/api/lib/widgets/framework/build_owner.0.dart
@@ -2,11 +2,11 @@
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
-// Flutter code sample for [BuildOwner].
-
 import 'package:flutter/material.dart';
 import 'package:flutter/rendering.dart';
 
+/// Flutter code sample for [BuildOwner].
+
 void main() {
   WidgetsFlutterBinding.ensureInitialized();
   final Size size = measureWidget(const SizedBox(width: 640, height: 480));
diff --git a/examples/api/lib/widgets/framework/error_widget.0.dart b/examples/api/lib/widgets/framework/error_widget.0.dart
index 73ef0ff..3be9ff8 100644
--- a/examples/api/lib/widgets/framework/error_widget.0.dart
+++ b/examples/api/lib/widgets/framework/error_widget.0.dart
@@ -2,11 +2,11 @@
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
-// Flutter code sample for [ErrorWidget].
-
 import 'package:flutter/foundation.dart';
 import 'package:flutter/material.dart';
 
+/// Flutter code sample for [ErrorWidget].
+
 void main() {
   // Set the ErrorWidget's builder before the app is started.
   ErrorWidget.builder = (FlutterErrorDetails details) {
@@ -28,19 +28,17 @@
   };
 
   // Start the app.
-  runApp(const MyApp());
+  runApp(const ErrorWidgetExampleApp());
 }
 
-class MyApp extends StatefulWidget {
-  const MyApp({super.key});
-
-  static const String _title = 'ErrorWidget Sample';
+class ErrorWidgetExampleApp extends StatefulWidget {
+  const ErrorWidgetExampleApp({super.key});
 
   @override
-  State<MyApp> createState() => _MyAppState();
+  State<ErrorWidgetExampleApp> createState() => _ErrorWidgetExampleAppState();
 }
 
-class _MyAppState extends State<MyApp> {
+class _ErrorWidgetExampleAppState extends State<ErrorWidgetExampleApp> {
   bool throwError = false;
 
   @override
@@ -55,13 +53,14 @@
       );
     } else {
       return MaterialApp(
-        title: MyApp._title,
         home: Scaffold(
-          appBar: AppBar(title: const Text(MyApp._title)),
+          appBar: AppBar(title: const Text('ErrorWidget Sample')),
           body: Center(
             child: TextButton(
                 onPressed: () {
-                  setState(() { throwError = true; });
+                  setState(() {
+                    throwError = true;
+                  });
                 },
                 child: const Text('Error Prone')),
           ),
diff --git a/examples/api/lib/widgets/gesture_detector/gesture_detector.0.dart b/examples/api/lib/widgets/gesture_detector/gesture_detector.0.dart
index f6010ac..21b1ff9 100644
--- a/examples/api/lib/widgets/gesture_detector/gesture_detector.0.dart
+++ b/examples/api/lib/widgets/gesture_detector/gesture_detector.0.dart
@@ -2,34 +2,31 @@
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
-// Flutter code sample for [GestureDetector].
-
 import 'package:flutter/material.dart';
 
-void main() => runApp(const MyApp());
+/// Flutter code sample for [GestureDetector].
 
-class MyApp extends StatelessWidget {
-  const MyApp({super.key});
+void main() => runApp(const GestureDetectorExampleApp());
 
-  static const String _title = 'Flutter Code Sample';
+class GestureDetectorExampleApp extends StatelessWidget {
+  const GestureDetectorExampleApp({super.key});
 
   @override
   Widget build(BuildContext context) {
     return const MaterialApp(
-      title: _title,
-      home: MyStatefulWidget(),
+      home: GestureDetectorExample(),
     );
   }
 }
 
-class MyStatefulWidget extends StatefulWidget {
-  const MyStatefulWidget({super.key});
+class GestureDetectorExample extends StatefulWidget {
+  const GestureDetectorExample({super.key});
 
   @override
-  State<MyStatefulWidget> createState() => _MyStatefulWidgetState();
+  State<GestureDetectorExample> createState() => _GestureDetectorExampleState();
 }
 
-class _MyStatefulWidgetState extends State<MyStatefulWidget> {
+class _GestureDetectorExampleState extends State<GestureDetectorExample> {
   bool _lightIsOn = false;
 
   @override
diff --git a/examples/api/lib/widgets/gesture_detector/gesture_detector.1.dart b/examples/api/lib/widgets/gesture_detector/gesture_detector.1.dart
index fd0606b..11212d1 100644
--- a/examples/api/lib/widgets/gesture_detector/gesture_detector.1.dart
+++ b/examples/api/lib/widgets/gesture_detector/gesture_detector.1.dart
@@ -2,34 +2,31 @@
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
-// Flutter code sample for [GestureDetector].
-
 import 'package:flutter/material.dart';
 
-void main() => runApp(const MyApp());
+/// Flutter code sample for [GestureDetector].
 
-class MyApp extends StatelessWidget {
-  const MyApp({super.key});
+void main() => runApp(const GestureDetectorExampleApp());
 
-  static const String _title = 'Flutter Code Sample';
+class GestureDetectorExampleApp extends StatelessWidget {
+  const GestureDetectorExampleApp({super.key});
 
   @override
   Widget build(BuildContext context) {
     return const MaterialApp(
-      title: _title,
-      home: MyStatefulWidget(),
+      home: GestureDetectorExample(),
     );
   }
 }
 
-class MyStatefulWidget extends StatefulWidget {
-  const MyStatefulWidget({super.key});
+class GestureDetectorExample extends StatefulWidget {
+  const GestureDetectorExample({super.key});
 
   @override
-  State<MyStatefulWidget> createState() => _MyStatefulWidgetState();
+  State<GestureDetectorExample> createState() => _GestureDetectorExampleState();
 }
 
-class _MyStatefulWidgetState extends State<MyStatefulWidget> {
+class _GestureDetectorExampleState extends State<GestureDetectorExample> {
   Color _color = Colors.white;
 
   @override
@@ -41,9 +38,7 @@
       child: GestureDetector(
         onTap: () {
           setState(() {
-            _color == Colors.yellow
-                ? _color = Colors.white
-                : _color = Colors.yellow;
+            _color == Colors.yellow ? _color = Colors.white : _color = Colors.yellow;
           });
         },
       ),
diff --git a/examples/api/lib/widgets/gesture_detector/gesture_detector.2.dart b/examples/api/lib/widgets/gesture_detector/gesture_detector.2.dart
index 6017ffb..5945453 100644
--- a/examples/api/lib/widgets/gesture_detector/gesture_detector.2.dart
+++ b/examples/api/lib/widgets/gesture_detector/gesture_detector.2.dart
@@ -2,11 +2,11 @@
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
-// Flutter code sample for [GestureDetector].
-
 import 'package:flutter/gestures.dart';
 import 'package:flutter/material.dart';
 
+/// Flutter code sample for [GestureDetector].
+
 void main() {
   debugPrintGestureArenaDiagnostics = true;
   runApp(const NestedGestureDetectorsApp());
@@ -35,8 +35,7 @@
   State<NestedGestureDetectorsExample> createState() => _NestedGestureDetectorsExampleState();
 }
 
-class _NestedGestureDetectorsExampleState
-    extends State<NestedGestureDetectorsExample> {
+class _NestedGestureDetectorsExampleState extends State<NestedGestureDetectorsExample> {
   bool _isYellowTranslucent = false;
   _OnTapWinner _winner = _OnTapWinner.none;
   final Border highlightBorder = Border.all(color: Colors.red, width: 5);
@@ -66,9 +65,7 @@
                 // parent-child hit testing. A tap on 'Yellow' is also in
                 // 'Green' bounds. Both enter the gesture arena, 'Yellow' wins
                 // because it is in front.
-                behavior: _isYellowTranslucent
-                    ? HitTestBehavior.translucent
-                    : HitTestBehavior.opaque,
+                behavior: _isYellowTranslucent ? HitTestBehavior.translucent : HitTestBehavior.opaque,
                 onTap: () {
                   debugPrint('Yellow onTap');
                   setState(() {
diff --git a/examples/api/lib/widgets/hardware_keyboard/key_event_manager.0.dart b/examples/api/lib/widgets/hardware_keyboard/key_event_manager.0.dart
index e899078..9c5fd51 100644
--- a/examples/api/lib/widgets/hardware_keyboard/key_event_manager.0.dart
+++ b/examples/api/lib/widgets/hardware_keyboard/key_event_manager.0.dart
@@ -2,20 +2,22 @@
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
-// Flutter code sample for [KeyEventManager.keyMessageHandler].
-
 import 'package:flutter/material.dart';
 import 'package:flutter/services.dart';
 
-void main() => runApp(
-  const MaterialApp(
-    home: Scaffold(
-      body: Center(
-        child: FallbackDemo(),
-      )
+/// Flutter code sample for [KeyEventManager.keyMessageHandler].
+
+void main() {
+  runApp(
+    const MaterialApp(
+      home: Scaffold(
+        body: Center(
+          child: FallbackDemo(),
+        ),
+      ),
     ),
-  ),
-);
+  );
+}
 
 class FallbackDemo extends StatefulWidget {
   const FallbackDemo({super.key});
@@ -38,7 +40,7 @@
       // to type text, because these key events will no longer be sent to the
       // text input system.
       return false;
-    }
+    },
   );
 
   @override
@@ -52,7 +54,7 @@
         child: Column(
           children: <Widget>[
             const Text('This area handles key presses that are unhandled by any shortcuts, by '
-              'displaying them below. Try text shortcuts such as Ctrl-A!'),
+                'displaying them below. Try text shortcuts such as Ctrl-A!'),
             Text(_capture == null ? '' : '$_capture is not handled by shortcuts.'),
             const TextField(decoration: InputDecoration(label: Text('Text field 1'))),
             Shortcuts(
@@ -67,7 +69,7 @@
             ),
           ],
         ),
-      )
+      ),
     );
   }
 }
@@ -113,6 +115,7 @@
     }
     return _instance;
   }
+
   static bool _initialized = false;
   static final FallbackKeyEventRegistrar _instance = FallbackKeyEventRegistrar._();
 
diff --git a/examples/api/lib/widgets/heroes/hero.0.dart b/examples/api/lib/widgets/heroes/hero.0.dart
index c81cfbe..2c6772e 100644
--- a/examples/api/lib/widgets/heroes/hero.0.dart
+++ b/examples/api/lib/widgets/heroes/hero.0.dart
@@ -2,10 +2,10 @@
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
-// Flutter code sample for [Hero].
-
 import 'package:flutter/material.dart';
 
+/// Flutter code sample for [Hero].
+
 void main() => runApp(const HeroApp());
 
 class HeroApp extends StatelessWidget {
diff --git a/examples/api/lib/widgets/heroes/hero.1.dart b/examples/api/lib/widgets/heroes/hero.1.dart
index 51685ce..f716862 100644
--- a/examples/api/lib/widgets/heroes/hero.1.dart
+++ b/examples/api/lib/widgets/heroes/hero.1.dart
@@ -2,11 +2,11 @@
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
-// Flutter code sample for [Hero].
-
 import 'package:flutter/material.dart';
 import 'package:flutter/scheduler.dart';
 
+/// Flutter code sample for [Hero].
+
 void main() {
   // Slow down time to see Hero flight animation.
   timeDilation = 15.0;
@@ -38,7 +38,7 @@
               tag: 'hero-default-tween',
               child: BoxWidget(
                 size: const Size(50.0, 50.0),
-                color:Colors.red[700]!.withOpacity(0.5),
+                color: Colors.red[700]!.withOpacity(0.5),
               ),
             ),
             title: const Text(
@@ -54,7 +54,7 @@
               },
               child: BoxWidget(
                 size: const Size(50.0, 50.0),
-                color:Colors.blue[700]!.withOpacity(0.5),
+                color: Colors.blue[700]!.withOpacity(0.5),
               ),
             ),
             title: const Text(
diff --git a/examples/api/lib/widgets/image/image.error_builder.0.dart b/examples/api/lib/widgets/image/image.error_builder.0.dart
index be1aa82..e076c45 100644
--- a/examples/api/lib/widgets/image/image.error_builder.0.dart
+++ b/examples/api/lib/widgets/image/image.error_builder.0.dart
@@ -2,32 +2,29 @@
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
-// Flutter code sample for [Image.errorBuilder].
-
 import 'package:flutter/material.dart';
 
-void main() => runApp(const MyApp());
+/// Flutter code sample for [Image.errorBuilder].
 
-class MyApp extends StatelessWidget {
-  const MyApp({super.key});
+void main() => runApp(const ErrorBuilderExampleApp());
 
-  static const String _title = 'Flutter Code Sample';
+class ErrorBuilderExampleApp extends StatelessWidget {
+  const ErrorBuilderExampleApp({super.key});
 
   @override
   Widget build(BuildContext context) {
     return const MaterialApp(
-      title: _title,
       home: Scaffold(
         body: Center(
-          child: MyStatelessWidget(),
+          child: ErrorBuilderExample(),
         ),
       ),
     );
   }
 }
 
-class MyStatelessWidget extends StatelessWidget {
-  const MyStatelessWidget({super.key});
+class ErrorBuilderExample extends StatelessWidget {
+  const ErrorBuilderExample({super.key});
 
   @override
   Widget build(BuildContext context) {
@@ -39,8 +36,7 @@
       ),
       child: Image.network(
         'https://example.does.not.exist/image.jpg',
-        errorBuilder:
-            (BuildContext context, Object exception, StackTrace? stackTrace) {
+        errorBuilder: (BuildContext context, Object exception, StackTrace? stackTrace) {
           // Appropriate logging or analytics, e.g.
           // myAnalytics.recordError(
           //   'An error occurred loading "https://example.does.not.exist/image.jpg"',
diff --git a/examples/api/lib/widgets/image/image.frame_builder.0.dart b/examples/api/lib/widgets/image/image.frame_builder.0.dart
index b04d6f8..809fd63 100644
--- a/examples/api/lib/widgets/image/image.frame_builder.0.dart
+++ b/examples/api/lib/widgets/image/image.frame_builder.0.dart
@@ -2,28 +2,25 @@
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
-// Flutter code sample for [Image.frameBuilder].
-
 import 'package:flutter/material.dart';
 
-void main() => runApp(const MyApp());
+/// Flutter code sample for [Image.frameBuilder].
 
-class MyApp extends StatelessWidget {
-  const MyApp({super.key});
+void main() => runApp(const FrameBuilderExampleApp());
 
-  static const String _title = 'Flutter Code Sample';
+class FrameBuilderExampleApp extends StatelessWidget {
+  const FrameBuilderExampleApp({super.key});
 
   @override
   Widget build(BuildContext context) {
     return const MaterialApp(
-      title: _title,
-      home: MyStatelessWidget(),
+      home: FrameBuilderExample(),
     );
   }
 }
 
-class MyStatelessWidget extends StatelessWidget {
-  const MyStatelessWidget({super.key});
+class FrameBuilderExample extends StatelessWidget {
+  const FrameBuilderExample({super.key});
 
   @override
   @override
@@ -36,8 +33,7 @@
       ),
       child: Image.network(
         'https://flutter.github.io/assets-for-api-docs/assets/widgets/puffin.jpg',
-        frameBuilder: (BuildContext context, Widget child, int? frame,
-            bool wasSynchronouslyLoaded) {
+        frameBuilder: (BuildContext context, Widget child, int? frame, bool wasSynchronouslyLoaded) {
           if (wasSynchronouslyLoaded) {
             return child;
           }
diff --git a/examples/api/lib/widgets/image/image.loading_builder.0.dart b/examples/api/lib/widgets/image/image.loading_builder.0.dart
index 6e9b97f..3005bf0 100644
--- a/examples/api/lib/widgets/image/image.loading_builder.0.dart
+++ b/examples/api/lib/widgets/image/image.loading_builder.0.dart
@@ -2,28 +2,25 @@
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
-// Flutter code sample for [Image.loadingBuilder].
-
 import 'package:flutter/material.dart';
 
-void main() => runApp(const MyApp());
+/// Flutter code sample for [Image.loadingBuilder].
 
-class MyApp extends StatelessWidget {
-  const MyApp({super.key});
+void main() => runApp(const LoadingBuilderExampleApp());
 
-  static const String _title = 'Flutter Code Sample';
+class LoadingBuilderExampleApp extends StatelessWidget {
+  const LoadingBuilderExampleApp({super.key});
 
   @override
   Widget build(BuildContext context) {
     return const MaterialApp(
-      title: _title,
-      home: MyStatelessWidget(),
+      home: LoadingBuilderExample(),
     );
   }
 }
 
-class MyStatelessWidget extends StatelessWidget {
-  const MyStatelessWidget({super.key});
+class LoadingBuilderExample extends StatelessWidget {
+  const LoadingBuilderExample({super.key});
 
   @override
   Widget build(BuildContext context) {
@@ -35,16 +32,14 @@
       ),
       child: Image.network(
         'https://flutter.github.io/assets-for-api-docs/assets/widgets/falcon.jpg',
-        loadingBuilder: (BuildContext context, Widget child,
-            ImageChunkEvent? loadingProgress) {
+        loadingBuilder: (BuildContext context, Widget child, ImageChunkEvent? loadingProgress) {
           if (loadingProgress == null) {
             return child;
           }
           return Center(
             child: CircularProgressIndicator(
               value: loadingProgress.expectedTotalBytes != null
-                  ? loadingProgress.cumulativeBytesLoaded /
-                      loadingProgress.expectedTotalBytes!
+                  ? loadingProgress.cumulativeBytesLoaded / loadingProgress.expectedTotalBytes!
                   : null,
             ),
           );
diff --git a/examples/api/lib/widgets/implicit_animations/animated_align.0.dart b/examples/api/lib/widgets/implicit_animations/animated_align.0.dart
index 3a73a99..6f73cf7 100644
--- a/examples/api/lib/widgets/implicit_animations/animated_align.0.dart
+++ b/examples/api/lib/widgets/implicit_animations/animated_align.0.dart
@@ -2,37 +2,34 @@
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
-// Flutter code sample for [AnimatedAlign].
-
 import 'package:flutter/material.dart';
 
-void main() => runApp(const MyApp());
+/// Flutter code sample for [AnimatedAlign].
 
-class MyApp extends StatelessWidget {
-  const MyApp({super.key});
+void main() => runApp(const AnimatedAlignExampleApp());
 
-  static const String _title = 'Flutter Code Sample';
+class AnimatedAlignExampleApp extends StatelessWidget {
+  const AnimatedAlignExampleApp({super.key});
 
   @override
   Widget build(BuildContext context) {
     return MaterialApp(
-      title: _title,
       home: Scaffold(
-        appBar: AppBar(title: const Text(_title)),
-        body: const MyStatefulWidget(),
+        appBar: AppBar(title: const Text('AnimatedAlign Sample')),
+        body: const AnimatedAlignExample(),
       ),
     );
   }
 }
 
-class MyStatefulWidget extends StatefulWidget {
-  const MyStatefulWidget({super.key});
+class AnimatedAlignExample extends StatefulWidget {
+  const AnimatedAlignExample({super.key});
 
   @override
-  State<MyStatefulWidget> createState() => _MyStatefulWidgetState();
+  State<AnimatedAlignExample> createState() => _AnimatedAlignExampleState();
 }
 
-class _MyStatefulWidgetState extends State<MyStatefulWidget> {
+class _AnimatedAlignExampleState extends State<AnimatedAlignExample> {
   bool selected = false;
 
   @override
diff --git a/examples/api/lib/widgets/implicit_animations/animated_container.0.dart b/examples/api/lib/widgets/implicit_animations/animated_container.0.dart
index a374cd0..a9706e5 100644
--- a/examples/api/lib/widgets/implicit_animations/animated_container.0.dart
+++ b/examples/api/lib/widgets/implicit_animations/animated_container.0.dart
@@ -2,37 +2,34 @@
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
-// Flutter code sample for [AnimatedContainer].
-
 import 'package:flutter/material.dart';
 
-void main() => runApp(const MyApp());
+/// Flutter code sample for [AnimatedContainer].
 
-class MyApp extends StatelessWidget {
-  const MyApp({super.key});
+void main() => runApp(const AnimatedContainerExampleApp());
 
-  static const String _title = 'Flutter Code Sample';
+class AnimatedContainerExampleApp extends StatelessWidget {
+  const AnimatedContainerExampleApp({super.key});
 
   @override
   Widget build(BuildContext context) {
     return MaterialApp(
-      title: _title,
       home: Scaffold(
-        appBar: AppBar(title: const Text(_title)),
-        body: const MyStatefulWidget(),
+        appBar: AppBar(title: const Text('AnimatedContainer Sample')),
+        body: const AnimatedContainerExample(),
       ),
     );
   }
 }
 
-class MyStatefulWidget extends StatefulWidget {
-  const MyStatefulWidget({super.key});
+class AnimatedContainerExample extends StatefulWidget {
+  const AnimatedContainerExample({super.key});
 
   @override
-  State<MyStatefulWidget> createState() => _MyStatefulWidgetState();
+  State<AnimatedContainerExample> createState() => _AnimatedContainerExampleState();
 }
 
-class _MyStatefulWidgetState extends State<MyStatefulWidget> {
+class _AnimatedContainerExampleState extends State<AnimatedContainerExample> {
   bool selected = false;
 
   @override
@@ -48,8 +45,7 @@
           width: selected ? 200.0 : 100.0,
           height: selected ? 100.0 : 200.0,
           color: selected ? Colors.red : Colors.blue,
-          alignment:
-              selected ? Alignment.center : AlignmentDirectional.topCenter,
+          alignment: selected ? Alignment.center : AlignmentDirectional.topCenter,
           duration: const Duration(seconds: 2),
           curve: Curves.fastOutSlowIn,
           child: const FlutterLogo(size: 75),
diff --git a/examples/api/lib/widgets/implicit_animations/animated_fractionally_sized_box.0.dart b/examples/api/lib/widgets/implicit_animations/animated_fractionally_sized_box.0.dart
index a3d6c25..8efa516 100644
--- a/examples/api/lib/widgets/implicit_animations/animated_fractionally_sized_box.0.dart
+++ b/examples/api/lib/widgets/implicit_animations/animated_fractionally_sized_box.0.dart
@@ -2,37 +2,34 @@
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
-// Flutter code sample for [AnimatedFractionallySizedBox].
-
 import 'package:flutter/material.dart';
 
-void main() => runApp(const MyApp());
+/// Flutter code sample for [AnimatedFractionallySizedBox].
 
-class MyApp extends StatelessWidget {
-  const MyApp({super.key});
+void main() => runApp(const AnimatedFractionallySizedBoxExampleApp());
 
-  static const String _title = 'Flutter Code Sample';
+class AnimatedFractionallySizedBoxExampleApp extends StatelessWidget {
+  const AnimatedFractionallySizedBoxExampleApp({super.key});
 
   @override
   Widget build(BuildContext context) {
     return MaterialApp(
-      title: _title,
       home: Scaffold(
-        appBar: AppBar(title: const Text(_title)),
-        body: const MyStatefulWidget(),
+        appBar: AppBar(title: const Text('AnimatedFractionallySizedBox Sample')),
+        body: const AnimatedFractionallySizedBoxExample(),
       ),
     );
   }
 }
 
-class MyStatefulWidget extends StatefulWidget {
-  const MyStatefulWidget({super.key});
+class AnimatedFractionallySizedBoxExample extends StatefulWidget {
+  const AnimatedFractionallySizedBoxExample({super.key});
 
   @override
-  State<MyStatefulWidget> createState() => _MyStatefulWidgetState();
+  State<AnimatedFractionallySizedBoxExample> createState() => _AnimatedFractionallySizedBoxExampleState();
 }
 
-class _MyStatefulWidgetState extends State<MyStatefulWidget> {
+class _AnimatedFractionallySizedBoxExampleState extends State<AnimatedFractionallySizedBoxExample> {
   bool selected = false;
 
   @override
diff --git a/examples/api/lib/widgets/implicit_animations/animated_padding.0.dart b/examples/api/lib/widgets/implicit_animations/animated_padding.0.dart
index 2d42480..eebf76e 100644
--- a/examples/api/lib/widgets/implicit_animations/animated_padding.0.dart
+++ b/examples/api/lib/widgets/implicit_animations/animated_padding.0.dart
@@ -2,37 +2,34 @@
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
-// Flutter code sample for [AnimatedPadding].
-
 import 'package:flutter/material.dart';
 
-void main() => runApp(const MyApp());
+/// Flutter code sample for [AnimatedPadding].
 
-class MyApp extends StatelessWidget {
-  const MyApp({super.key});
+void main() => runApp(const AnimatedPaddingExampleApp());
 
-  static const String _title = 'Flutter Code Sample';
+class AnimatedPaddingExampleApp extends StatelessWidget {
+  const AnimatedPaddingExampleApp({super.key});
 
   @override
   Widget build(BuildContext context) {
     return MaterialApp(
-      title: _title,
       home: Scaffold(
-        appBar: AppBar(title: const Text(_title)),
-        body: const MyStatefulWidget(),
+        appBar: AppBar(title: const Text('AnimatedPadding Sample')),
+        body: const AnimatedPaddingExample(),
       ),
     );
   }
 }
 
-class MyStatefulWidget extends StatefulWidget {
-  const MyStatefulWidget({super.key});
+class AnimatedPaddingExample extends StatefulWidget {
+  const AnimatedPaddingExample({super.key});
 
   @override
-  State<MyStatefulWidget> createState() => _MyStatefulWidgetState();
+  State<AnimatedPaddingExample> createState() => _AnimatedPaddingExampleState();
 }
 
-class _MyStatefulWidgetState extends State<MyStatefulWidget> {
+class _AnimatedPaddingExampleState extends State<AnimatedPaddingExample> {
   double padValue = 0.0;
   void _updatePadding(double value) {
     setState(() {
diff --git a/examples/api/lib/widgets/implicit_animations/animated_positioned.0.dart b/examples/api/lib/widgets/implicit_animations/animated_positioned.0.dart
index 55478c8..bc0a294 100644
--- a/examples/api/lib/widgets/implicit_animations/animated_positioned.0.dart
+++ b/examples/api/lib/widgets/implicit_animations/animated_positioned.0.dart
@@ -2,39 +2,36 @@
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
-// Flutter code sample for [AnimatedPositioned].
-
 import 'package:flutter/material.dart';
 
-void main() => runApp(const MyApp());
+/// Flutter code sample for [AnimatedPositioned].
 
-class MyApp extends StatelessWidget {
-  const MyApp({super.key});
+void main() => runApp(const AnimatedPositionedExampleApp());
 
-  static const String _title = 'Flutter Code Sample';
+class AnimatedPositionedExampleApp extends StatelessWidget {
+  const AnimatedPositionedExampleApp({super.key});
 
   @override
   Widget build(BuildContext context) {
     return MaterialApp(
-      title: _title,
       home: Scaffold(
-        appBar: AppBar(title: const Text(_title)),
+        appBar: AppBar(title: const Text('AnimatedPositioned Sample')),
         body: const Center(
-          child: MyStatefulWidget(),
+          child: AnimatedPositionedExample(),
         ),
       ),
     );
   }
 }
 
-class MyStatefulWidget extends StatefulWidget {
-  const MyStatefulWidget({super.key});
+class AnimatedPositionedExample extends StatefulWidget {
+  const AnimatedPositionedExample({super.key});
 
   @override
-  State<MyStatefulWidget> createState() => _MyStatefulWidgetState();
+  State<AnimatedPositionedExample> createState() => _AnimatedPositionedExampleState();
 }
 
-class _MyStatefulWidgetState extends State<MyStatefulWidget> {
+class _AnimatedPositionedExampleState extends State<AnimatedPositionedExample> {
   bool selected = false;
 
   @override
diff --git a/examples/api/lib/widgets/implicit_animations/animated_slide.0.dart b/examples/api/lib/widgets/implicit_animations/animated_slide.0.dart
index ed742ad..8f6b94f 100644
--- a/examples/api/lib/widgets/implicit_animations/animated_slide.0.dart
+++ b/examples/api/lib/widgets/implicit_animations/animated_slide.0.dart
@@ -2,10 +2,10 @@
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
-// Flutter code sample for [AnimatedSlide].
-
 import 'package:flutter/material.dart';
 
+/// Flutter code sample for [AnimatedSlide].
+
 void main() => runApp(const AnimatedSlideApp());
 
 class AnimatedSlideApp extends StatelessWidget {
diff --git a/examples/api/lib/widgets/implicit_animations/sliver_animated_opacity.0.dart b/examples/api/lib/widgets/implicit_animations/sliver_animated_opacity.0.dart
index cdadf62..35df561 100644
--- a/examples/api/lib/widgets/implicit_animations/sliver_animated_opacity.0.dart
+++ b/examples/api/lib/widgets/implicit_animations/sliver_animated_opacity.0.dart
@@ -2,39 +2,36 @@
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
-// Flutter code sample for [SliverAnimatedOpacity].
-
 import 'package:flutter/material.dart';
 
-void main() => runApp(const MyApp());
+/// Flutter code sample for [SliverAnimatedOpacity].
 
-class MyApp extends StatelessWidget {
-  const MyApp({super.key});
+void main() => runApp(const SliverAnimatedOpacityExampleApp());
 
-  static const String _title = 'Flutter Code Sample';
+class SliverAnimatedOpacityExampleApp extends StatelessWidget {
+  const SliverAnimatedOpacityExampleApp({super.key});
 
   @override
   Widget build(BuildContext context) {
     return MaterialApp(
-      title: _title,
       home: Scaffold(
-        appBar: AppBar(title: const Text(_title)),
+        appBar: AppBar(title: const Text('SliverAnimatedOpacity Sample')),
         body: const Center(
-          child: MyStatefulWidget(),
+          child: SliverAnimatedOpacityExample(),
         ),
       ),
     );
   }
 }
 
-class MyStatefulWidget extends StatefulWidget {
-  const MyStatefulWidget({super.key});
+class SliverAnimatedOpacityExample extends StatefulWidget {
+  const SliverAnimatedOpacityExample({super.key});
 
   @override
-  State<MyStatefulWidget> createState() => _MyStatefulWidgetState();
+  State<SliverAnimatedOpacityExample> createState() => _SliverAnimatedOpacityExampleState();
 }
 
-class _MyStatefulWidgetState extends State<MyStatefulWidget>
+class _SliverAnimatedOpacityExampleState extends State<SliverAnimatedOpacityExample>
     with SingleTickerProviderStateMixin {
   bool _visible = true;
 
diff --git a/examples/api/lib/widgets/inherited_model/inherited_model.0.dart b/examples/api/lib/widgets/inherited_model/inherited_model.0.dart
index 512edc1..dcc92ae 100644
--- a/examples/api/lib/widgets/inherited_model/inherited_model.0.dart
+++ b/examples/api/lib/widgets/inherited_model/inherited_model.0.dart
@@ -2,10 +2,10 @@
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
-// Flutter code sample for [InheritedModel].
-
 import 'package:flutter/material.dart';
 
+/// Flutter code sample for [InheritedModel].
+
 enum LogoAspect { backgroundColor, large }
 
 void main() => runApp(const InheritedModelApp());
@@ -42,8 +42,7 @@
 
   @override
   bool updateShouldNotify(LogoModel oldWidget) {
-    return backgroundColor != oldWidget.backgroundColor ||
-      large != oldWidget.large;
+    return backgroundColor != oldWidget.backgroundColor || large != oldWidget.large;
   }
 
   @override
@@ -97,7 +96,7 @@
                     ),
                   );
                   setState(() {
-                    if (color == Colors.blue){
+                    if (color == Colors.blue) {
                       color = Colors.red;
                     } else {
                       color = Colors.blue;
diff --git a/examples/api/lib/widgets/inherited_notifier/inherited_notifier.0.dart b/examples/api/lib/widgets/inherited_notifier/inherited_notifier.0.dart
index 08736bb..938ac06 100644
--- a/examples/api/lib/widgets/inherited_notifier/inherited_notifier.0.dart
+++ b/examples/api/lib/widgets/inherited_notifier/inherited_notifier.0.dart
@@ -2,24 +2,21 @@
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
-// Flutter code sample for [InheritedNotifier].
-
 import 'dart:math' as math;
 
 import 'package:flutter/material.dart';
 
-void main() => runApp(const MyApp());
+/// Flutter code sample for [InheritedNotifier].
 
-class MyApp extends StatelessWidget {
-  const MyApp({super.key});
+void main() => runApp(const InheritedNotifierExampleApp());
 
-  static const String _title = 'Flutter Code Sample';
+class InheritedNotifierExampleApp extends StatelessWidget {
+  const InheritedNotifierExampleApp({super.key});
 
   @override
   Widget build(BuildContext context) {
     return const MaterialApp(
-      title: _title,
-      home: MyStatefulWidget(),
+      home: InheritedNotifierExample(),
     );
   }
 }
@@ -32,10 +29,7 @@
   });
 
   static double of(BuildContext context) {
-    return context
-        .dependOnInheritedWidgetOfExactType<SpinModel>()!
-        .notifier!
-        .value;
+    return context.dependOnInheritedWidgetOfExactType<SpinModel>()!.notifier!.value;
   }
 }
 
@@ -58,17 +52,16 @@
   }
 }
 
-class MyStatefulWidget extends StatefulWidget {
-  const MyStatefulWidget({super.key});
+class InheritedNotifierExample extends StatefulWidget {
+  const InheritedNotifierExample({super.key});
 
   @override
-  State<MyStatefulWidget> createState() => _MyStatefulWidgetState();
+  State<InheritedNotifierExample> createState() => _InheritedNotifierExampleState();
 }
 
 /// [AnimationController]s can be created with `vsync: this` because of
 /// [TickerProviderStateMixin].
-class _MyStatefulWidgetState extends State<MyStatefulWidget>
-    with TickerProviderStateMixin {
+class _InheritedNotifierExampleState extends State<InheritedNotifierExample> with TickerProviderStateMixin {
   late AnimationController _controller;
 
   @override
diff --git a/examples/api/lib/widgets/inherited_theme/inherited_theme.0.dart b/examples/api/lib/widgets/inherited_theme/inherited_theme.0.dart
index 67b1254..6786db1 100644
--- a/examples/api/lib/widgets/inherited_theme/inherited_theme.0.dart
+++ b/examples/api/lib/widgets/inherited_theme/inherited_theme.0.dart
@@ -2,12 +2,12 @@
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
-// Flutter code sample for [InheritedTheme].
-
 import 'package:flutter/material.dart';
 
+/// Flutter code sample for [InheritedTheme].
+
 void main() {
-  runApp(const MyApp());
+  runApp(const InheritedThemeExampleApp());
 }
 
 class MyAppBody extends StatelessWidget {
@@ -23,8 +23,7 @@
     // the new route pushed onto said navigator.
     // Themes are captured outside of the route's builder because when the
     // builder executes, the context may not be valid anymore.
-    final CapturedThemes themes =
-        InheritedTheme.capture(from: context, to: navigator.context);
+    final CapturedThemes themes = InheritedTheme.capture(from: context, to: navigator.context);
     return GestureDetector(
       onTap: () {
         Navigator.of(context).push(
@@ -48,8 +47,8 @@
   }
 }
 
-class MyApp extends StatelessWidget {
-  const MyApp({super.key});
+class InheritedThemeExampleApp extends StatelessWidget {
+  const InheritedThemeExampleApp({super.key});
 
   @override
   Widget build(BuildContext context) {
diff --git a/examples/api/lib/widgets/interactive_viewer/interactive_viewer.0.dart b/examples/api/lib/widgets/interactive_viewer/interactive_viewer.0.dart
index f02786b..eaae7ba 100644
--- a/examples/api/lib/widgets/interactive_viewer/interactive_viewer.0.dart
+++ b/examples/api/lib/widgets/interactive_viewer/interactive_viewer.0.dart
@@ -2,31 +2,28 @@
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
-// Flutter code sample for [InteractiveViewer].
-
 import 'package:flutter/material.dart';
 
-void main() => runApp(const MyApp());
+/// Flutter code sample for [InteractiveViewer].
 
-class MyApp extends StatelessWidget {
-  const MyApp({super.key});
+void main() => runApp(const InteractiveViewerExampleApp());
 
-  static const String _title = 'Flutter Code Sample';
+class InteractiveViewerExampleApp extends StatelessWidget {
+  const InteractiveViewerExampleApp({super.key});
 
   @override
   Widget build(BuildContext context) {
     return MaterialApp(
-      title: _title,
       home: Scaffold(
-        appBar: AppBar(title: const Text(_title)),
-        body: const MyStatelessWidget(),
+        appBar: AppBar(title: const Text('InteractiveViewer Sample')),
+        body: const InteractiveViewerExample(),
       ),
     );
   }
 }
 
-class MyStatelessWidget extends StatelessWidget {
-  const MyStatelessWidget({super.key});
+class InteractiveViewerExample extends StatelessWidget {
+  const InteractiveViewerExample({super.key});
 
   @override
   Widget build(BuildContext context) {
diff --git a/examples/api/lib/widgets/interactive_viewer/interactive_viewer.builder.0.dart b/examples/api/lib/widgets/interactive_viewer/interactive_viewer.builder.0.dart
index 0337029..99faf50 100644
--- a/examples/api/lib/widgets/interactive_viewer/interactive_viewer.builder.0.dart
+++ b/examples/api/lib/widgets/interactive_viewer/interactive_viewer.builder.0.dart
@@ -2,11 +2,11 @@
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
-// Flutter code sample for [InteractiveViewer.builder].
-
 import 'package:flutter/material.dart';
 import 'package:vector_math/vector_math_64.dart' show Quad, Vector3;
 
+/// Flutter code sample for [InteractiveViewer.builder].
+
 void main() => runApp(const IVBuilderExampleApp());
 
 class IVBuilderExampleApp extends StatelessWidget {
@@ -80,9 +80,7 @@
                   return Container(
                     height: _cellHeight,
                     width: _cellWidth,
-                    color: row % 2 + column % 2 == 1
-                        ? Colors.white
-                        : Colors.grey.withOpacity(0.1),
+                    color: row % 2 + column % 2 == 1 ? Colors.white : Colors.grey.withOpacity(0.1),
                     child: Align(
                       child: Text('$row x $column'),
                     ),
@@ -97,8 +95,7 @@
   }
 }
 
-typedef _CellBuilder = Widget Function(
-    BuildContext context, int row, int column);
+typedef _CellBuilder = Widget Function(BuildContext context, int row, int column);
 
 class _TableBuilder extends StatelessWidget {
   const _TableBuilder({
diff --git a/examples/api/lib/widgets/interactive_viewer/interactive_viewer.constrained.0.dart b/examples/api/lib/widgets/interactive_viewer/interactive_viewer.constrained.0.dart
index 5b48689..be4aa44 100644
--- a/examples/api/lib/widgets/interactive_viewer/interactive_viewer.constrained.0.dart
+++ b/examples/api/lib/widgets/interactive_viewer/interactive_viewer.constrained.0.dart
@@ -2,31 +2,28 @@
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
-// Flutter code sample for [InteractiveViewer.constrained].
-
 import 'package:flutter/material.dart';
 
-void main() => runApp(const MyApp());
+/// Flutter code sample for [InteractiveViewer.constrained].
 
-class MyApp extends StatelessWidget {
-  const MyApp({super.key});
+void main() => runApp(const ConstrainedExampleApp());
 
-  static const String _title = 'Flutter Code Sample';
+class ConstrainedExampleApp extends StatelessWidget {
+  const ConstrainedExampleApp({super.key});
 
   @override
   Widget build(BuildContext context) {
     return MaterialApp(
-      title: _title,
       home: Scaffold(
-        appBar: AppBar(title: const Text(_title)),
-        body: const MyStatelessWidget(),
+        appBar: AppBar(title: const Text('Constrained Sample')),
+        body: const ConstrainedExample(),
       ),
     );
   }
 }
 
-class MyStatelessWidget extends StatelessWidget {
-  const MyStatelessWidget({super.key});
+class ConstrainedExample extends StatelessWidget {
+  const ConstrainedExample({super.key});
 
   @override
   Widget build(BuildContext context) {
@@ -39,8 +36,7 @@
       scaleEnabled: false,
       child: Table(
         columnWidths: <int, TableColumnWidth>{
-          for (int column = 0; column < columnCount; column += 1)
-            column: const FixedColumnWidth(200.0),
+          for (int column = 0; column < columnCount; column += 1) column: const FixedColumnWidth(200.0),
         },
         children: <TableRow>[
           for (int row = 0; row < rowCount; row += 1)
@@ -49,9 +45,7 @@
                 for (int column = 0; column < columnCount; column += 1)
                   Container(
                     height: 26,
-                    color: row % 2 + column % 2 == 1
-                        ? Colors.white
-                        : Colors.grey.withOpacity(0.1),
+                    color: row % 2 + column % 2 == 1 ? Colors.white : Colors.grey.withOpacity(0.1),
                     child: Align(
                       alignment: Alignment.centerLeft,
                       child: Text('$row x $column'),
diff --git a/examples/api/lib/widgets/interactive_viewer/interactive_viewer.transformation_controller.0.dart b/examples/api/lib/widgets/interactive_viewer/interactive_viewer.transformation_controller.0.dart
index 7879717..135f72e 100644
--- a/examples/api/lib/widgets/interactive_viewer/interactive_viewer.transformation_controller.0.dart
+++ b/examples/api/lib/widgets/interactive_viewer/interactive_viewer.transformation_controller.0.dart
@@ -2,39 +2,35 @@
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
-// Flutter code sample for [InteractiveViewer.transformationController].
-
 import 'package:flutter/material.dart';
 
-void main() => runApp(const MyApp());
+/// Flutter code sample for [InteractiveViewer.transformationController].
 
-class MyApp extends StatelessWidget {
-  const MyApp({super.key});
+void main() => runApp(const TransformationControllerExampleApp());
 
-  static const String _title = 'Flutter Code Sample';
+class TransformationControllerExampleApp extends StatelessWidget {
+  const TransformationControllerExampleApp({super.key});
 
   @override
   Widget build(BuildContext context) {
     return const MaterialApp(
-      title: _title,
-      home: MyStatefulWidget(),
+      home: TransformationControllerExample(),
     );
   }
 }
 
-class MyStatefulWidget extends StatefulWidget {
-  const MyStatefulWidget({super.key});
+class TransformationControllerExample extends StatefulWidget {
+  const TransformationControllerExample({super.key});
 
   @override
-  State<MyStatefulWidget> createState() => _MyStatefulWidgetState();
+  State<TransformationControllerExample> createState() => _TransformationControllerExampleState();
 }
 
 /// [AnimationController]s can be created with `vsync: this` because of
 /// [TickerProviderStateMixin].
-class _MyStatefulWidgetState extends State<MyStatefulWidget>
+class _TransformationControllerExampleState extends State<TransformationControllerExample>
     with TickerProviderStateMixin {
-  final TransformationController _transformationController =
-      TransformationController();
+  final TransformationController _transformationController = TransformationController();
   Animation<Matrix4>? _animationReset;
   late final AnimationController _controllerReset;
 
diff --git a/examples/api/lib/widgets/layout_builder/layout_builder.0.dart b/examples/api/lib/widgets/layout_builder/layout_builder.0.dart
index 07dbaad..b0254f7 100644
--- a/examples/api/lib/widgets/layout_builder/layout_builder.0.dart
+++ b/examples/api/lib/widgets/layout_builder/layout_builder.0.dart
@@ -2,28 +2,25 @@
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
-// Flutter code sample for [LayoutBuilder].
-
 import 'package:flutter/material.dart';
 
-void main() => runApp(const MyApp());
+/// Flutter code sample for [LayoutBuilder].
 
-class MyApp extends StatelessWidget {
-  const MyApp({super.key});
+void main() => runApp(const LayoutBuilderExampleApp());
 
-  static const String _title = 'Flutter Code Sample';
+class LayoutBuilderExampleApp extends StatelessWidget {
+  const LayoutBuilderExampleApp({super.key});
 
   @override
   Widget build(BuildContext context) {
     return const MaterialApp(
-      title: _title,
-      home: MyStatelessWidget(),
+      home: LayoutBuilderExample(),
     );
   }
 }
 
-class MyStatelessWidget extends StatelessWidget {
-  const MyStatelessWidget({super.key});
+class LayoutBuilderExample extends StatelessWidget {
+  const LayoutBuilderExample({super.key});
 
   @override
   Widget build(BuildContext context) {
diff --git a/examples/api/lib/widgets/magnifier/magnifier.0.dart b/examples/api/lib/widgets/magnifier/magnifier.0.dart
index 8603a23..87e3f98 100644
--- a/examples/api/lib/widgets/magnifier/magnifier.0.dart
+++ b/examples/api/lib/widgets/magnifier/magnifier.0.dart
@@ -4,17 +4,17 @@
 
 import 'package:flutter/material.dart';
 
-void main() => runApp(const MyApp());
+void main() => runApp(const MagnifierExampleApp());
 
-class MyApp extends StatefulWidget {
-  const MyApp({super.key});
+class MagnifierExampleApp extends StatefulWidget {
+  const MagnifierExampleApp({super.key});
   static const Size loupeSize = Size(200, 200);
 
   @override
-  State<MyApp> createState() => _MyAppState();
+  State<MagnifierExampleApp> createState() => _MagnifierExampleAppState();
 }
 
-class _MyAppState extends State<MyApp> {
+class _MagnifierExampleAppState extends State<MagnifierExampleApp> {
   Offset dragGesturePosition = Offset.zero;
 
   @override
diff --git a/examples/api/lib/widgets/media_query/media_query_data.system_gesture_insets.0.dart b/examples/api/lib/widgets/media_query/media_query_data.system_gesture_insets.0.dart
index 5603970..d41df33 100644
--- a/examples/api/lib/widgets/media_query/media_query_data.system_gesture_insets.0.dart
+++ b/examples/api/lib/widgets/media_query/media_query_data.system_gesture_insets.0.dart
@@ -2,43 +2,38 @@
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
-// Flutter code sample for [MediaQueryData.systemGestureInsets].
-
 import 'package:flutter/material.dart';
 
-void main() => runApp(const MyApp());
+/// Flutter code sample for [MediaQueryData.systemGestureInsets].
 
-class MyApp extends StatelessWidget {
-  const MyApp({super.key});
+void main() => runApp(const SystemGestureInsetsExampleApp());
 
-  static const String _title = 'Flutter Code Sample';
+class SystemGestureInsetsExampleApp extends StatelessWidget {
+  const SystemGestureInsetsExampleApp({super.key});
 
   @override
   Widget build(BuildContext context) {
     return const MaterialApp(
-      title: _title,
-      home: MyStatefulWidget(),
+      home: SystemGestureInsetsExample(),
     );
   }
 }
 
-class MyStatefulWidget extends StatefulWidget {
-  const MyStatefulWidget({super.key});
+class SystemGestureInsetsExample extends StatefulWidget {
+  const SystemGestureInsetsExample({super.key});
 
   @override
-  State<MyStatefulWidget> createState() => _MyStatefulWidgetState();
+  State<SystemGestureInsetsExample> createState() => _SystemGestureInsetsExampleState();
 }
 
-class _MyStatefulWidgetState extends State<MyStatefulWidget> {
+class _SystemGestureInsetsExampleState extends State<SystemGestureInsetsExample> {
   double _currentValue = 0.2;
 
   @override
   Widget build(BuildContext context) {
-    final EdgeInsets systemGestureInsets =
-        MediaQuery.of(context).systemGestureInsets;
+    final EdgeInsets systemGestureInsets = MediaQuery.of(context).systemGestureInsets;
     return Scaffold(
-      appBar:
-          AppBar(title: const Text('Pad Slider to avoid systemGestureInsets')),
+      appBar: AppBar(title: const Text('Pad Slider to avoid systemGestureInsets')),
       body: Padding(
         padding: EdgeInsets.only(
           // only left and right padding are needed here
diff --git a/examples/api/lib/widgets/navigator/navigator.0.dart b/examples/api/lib/widgets/navigator/navigator.0.dart
index 201fe08..0f19ecb 100644
--- a/examples/api/lib/widgets/navigator/navigator.0.dart
+++ b/examples/api/lib/widgets/navigator/navigator.0.dart
@@ -2,19 +2,18 @@
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
-// Flutter code sample for [Navigator].
-
 import 'package:flutter/material.dart';
 
-void main() => runApp(const MyApp());
+/// Flutter code sample for [Navigator].
 
-class MyApp extends StatelessWidget {
-  const MyApp({super.key});
+void main() => runApp(const NavigatorExampleApp());
+
+class NavigatorExampleApp extends StatelessWidget {
+  const NavigatorExampleApp({super.key});
 
   @override
   Widget build(BuildContext context) {
     return MaterialApp(
-      title: 'Flutter Code Sample for Navigator',
       // MaterialApp contains our top-level Navigator
       initialRoute: '/',
       routes: <String, WidgetBuilder>{
@@ -52,8 +51,7 @@
         onTap: () {
           // This moves from the personal info page to the credentials page,
           // replacing this page with that one.
-          Navigator.of(context)
-              .pushReplacementNamed('signup/choose_credentials');
+          Navigator.of(context).pushReplacementNamed('signup/choose_credentials');
         },
         child: Container(
           color: Colors.lightBlue,
diff --git a/examples/api/lib/widgets/navigator/navigator.restorable_push.0.dart b/examples/api/lib/widgets/navigator/navigator.restorable_push.0.dart
index f44ff6e..1e292f5 100644
--- a/examples/api/lib/widgets/navigator/navigator.restorable_push.0.dart
+++ b/examples/api/lib/widgets/navigator/navigator.restorable_push.0.dart
@@ -2,38 +2,35 @@
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
-// Flutter code sample for [Navigator.restorablePush].
-
 import 'package:flutter/material.dart';
 
-void main() => runApp(const MyApp());
+/// Flutter code sample for [Navigator.restorablePush].
 
-class MyApp extends StatelessWidget {
-  const MyApp({super.key});
+void main() => runApp(const RestorablePushExampleApp());
 
-  static const String _title = 'Flutter Code Sample';
+class RestorablePushExampleApp extends StatelessWidget {
+  const RestorablePushExampleApp({super.key});
 
   @override
   Widget build(BuildContext context) {
     return const MaterialApp(
-      title: _title,
-      home: MyStatefulWidget(),
+      home: RestorablePushExample(),
     );
   }
 }
 
-class MyStatefulWidget extends StatefulWidget {
-  const MyStatefulWidget({super.key});
+class RestorablePushExample extends StatefulWidget {
+  const RestorablePushExample({super.key});
 
   @override
-  State<MyStatefulWidget> createState() => _MyStatefulWidgetState();
+  State<RestorablePushExample> createState() => _RestorablePushExampleState();
 }
 
-class _MyStatefulWidgetState extends State<MyStatefulWidget> {
+class _RestorablePushExampleState extends State<RestorablePushExample> {
   @pragma('vm:entry-point')
   static Route<void> _myRouteBuilder(BuildContext context, Object? arguments) {
     return MaterialPageRoute<void>(
-      builder: (BuildContext context) => const MyStatefulWidget(),
+      builder: (BuildContext context) => const RestorablePushExample(),
     );
   }
 
diff --git a/examples/api/lib/widgets/navigator/navigator.restorable_push_and_remove_until.0.dart b/examples/api/lib/widgets/navigator/navigator.restorable_push_and_remove_until.0.dart
index 3e7c755..eaf34b3 100644
--- a/examples/api/lib/widgets/navigator/navigator.restorable_push_and_remove_until.0.dart
+++ b/examples/api/lib/widgets/navigator/navigator.restorable_push_and_remove_until.0.dart
@@ -2,38 +2,35 @@
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
-// Flutter code sample for [Navigator.restorablePushAndRemoveUntil].
-
 import 'package:flutter/material.dart';
 
-void main() => runApp(const MyApp());
+/// Flutter code sample for [Navigator.restorablePushAndRemoveUntil].
 
-class MyApp extends StatelessWidget {
-  const MyApp({super.key});
+void main() => runApp(const RestorablePushAndRemoveUntilExampleApp());
 
-  static const String _title = 'Flutter Code Sample';
+class RestorablePushAndRemoveUntilExampleApp extends StatelessWidget {
+  const RestorablePushAndRemoveUntilExampleApp({super.key});
 
   @override
   Widget build(BuildContext context) {
     return const MaterialApp(
-      title: _title,
-      home: MyStatefulWidget(),
+      home: RestorablePushAndRemoveUntilExample(),
     );
   }
 }
 
-class MyStatefulWidget extends StatefulWidget {
-  const MyStatefulWidget({super.key});
+class RestorablePushAndRemoveUntilExample extends StatefulWidget {
+  const RestorablePushAndRemoveUntilExample({super.key});
 
   @override
-  State<MyStatefulWidget> createState() => _MyStatefulWidgetState();
+  State<RestorablePushAndRemoveUntilExample> createState() => _RestorablePushAndRemoveUntilExampleState();
 }
 
-class _MyStatefulWidgetState extends State<MyStatefulWidget> {
+class _RestorablePushAndRemoveUntilExampleState extends State<RestorablePushAndRemoveUntilExample> {
   @pragma('vm:entry-point')
   static Route<void> _myRouteBuilder(BuildContext context, Object? arguments) {
     return MaterialPageRoute<void>(
-      builder: (BuildContext context) => const MyStatefulWidget(),
+      builder: (BuildContext context) => const RestorablePushAndRemoveUntilExample(),
     );
   }
 
diff --git a/examples/api/lib/widgets/navigator/navigator.restorable_push_replacement.0.dart b/examples/api/lib/widgets/navigator/navigator.restorable_push_replacement.0.dart
index a210aef..7d5df60 100644
--- a/examples/api/lib/widgets/navigator/navigator.restorable_push_replacement.0.dart
+++ b/examples/api/lib/widgets/navigator/navigator.restorable_push_replacement.0.dart
@@ -2,38 +2,35 @@
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
-// Flutter code sample for [Navigator.restorablePushReplacement].
-
 import 'package:flutter/material.dart';
 
-void main() => runApp(const MyApp());
+/// Flutter code sample for [Navigator.restorablePushReplacement].
 
-class MyApp extends StatelessWidget {
-  const MyApp({super.key});
+void main() => runApp(const RestorablePushReplacementExampleApp());
 
-  static const String _title = 'Flutter Code Sample';
+class RestorablePushReplacementExampleApp extends StatelessWidget {
+  const RestorablePushReplacementExampleApp({super.key});
 
   @override
   Widget build(BuildContext context) {
     return const MaterialApp(
-      title: _title,
-      home: MyStatefulWidget(),
+      home: RestorablePushReplacementExample(),
     );
   }
 }
 
-class MyStatefulWidget extends StatefulWidget {
-  const MyStatefulWidget({super.key});
+class RestorablePushReplacementExample extends StatefulWidget {
+  const RestorablePushReplacementExample({super.key});
 
   @override
-  State<MyStatefulWidget> createState() => _MyStatefulWidgetState();
+  State<RestorablePushReplacementExample> createState() => _RestorablePushReplacementExampleState();
 }
 
-class _MyStatefulWidgetState extends State<MyStatefulWidget> {
+class _RestorablePushReplacementExampleState extends State<RestorablePushReplacementExample> {
   @pragma('vm:entry-point')
   static Route<void> _myRouteBuilder(BuildContext context, Object? arguments) {
     return MaterialPageRoute<void>(
-      builder: (BuildContext context) => const MyStatefulWidget(),
+      builder: (BuildContext context) => const RestorablePushReplacementExample(),
     );
   }
 
@@ -44,8 +41,7 @@
         title: const Text('Sample Code'),
       ),
       floatingActionButton: FloatingActionButton(
-        onPressed: () =>
-            Navigator.restorablePushReplacement(context, _myRouteBuilder),
+        onPressed: () => Navigator.restorablePushReplacement(context, _myRouteBuilder),
         tooltip: 'Increment Counter',
         child: const Icon(Icons.add),
       ),
diff --git a/examples/api/lib/widgets/navigator/navigator_state.restorable_push.0.dart b/examples/api/lib/widgets/navigator/navigator_state.restorable_push.0.dart
index 3305144..cb45abe 100644
--- a/examples/api/lib/widgets/navigator/navigator_state.restorable_push.0.dart
+++ b/examples/api/lib/widgets/navigator/navigator_state.restorable_push.0.dart
@@ -2,38 +2,35 @@
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
-// Flutter code sample for [NavigatorState.restorablePush].
-
 import 'package:flutter/material.dart';
 
-void main() => runApp(const MyApp());
+/// Flutter code sample for [NavigatorState.restorablePush].
 
-class MyApp extends StatelessWidget {
-  const MyApp({super.key});
+void main() => runApp(const RestorablePushExampleApp());
 
-  static const String _title = 'Flutter Code Sample';
+class RestorablePushExampleApp extends StatelessWidget {
+  const RestorablePushExampleApp({super.key});
 
   @override
   Widget build(BuildContext context) {
     return const MaterialApp(
-      title: _title,
-      home: MyStatefulWidget(),
+      home: RestorablePushExample(),
     );
   }
 }
 
-class MyStatefulWidget extends StatefulWidget {
-  const MyStatefulWidget({super.key});
+class RestorablePushExample extends StatefulWidget {
+  const RestorablePushExample({super.key});
 
   @override
-  State<MyStatefulWidget> createState() => _MyStatefulWidgetState();
+  State<RestorablePushExample> createState() => _RestorablePushExampleState();
 }
 
-class _MyStatefulWidgetState extends State<MyStatefulWidget> {
+class _RestorablePushExampleState extends State<RestorablePushExample> {
   @pragma('vm:entry-point')
   static Route<void> _myRouteBuilder(BuildContext context, Object? arguments) {
     return MaterialPageRoute<void>(
-      builder: (BuildContext context) => const MyStatefulWidget(),
+      builder: (BuildContext context) => const RestorablePushExample(),
     );
   }
 
diff --git a/examples/api/lib/widgets/navigator/navigator_state.restorable_push_and_remove_until.0.dart b/examples/api/lib/widgets/navigator/navigator_state.restorable_push_and_remove_until.0.dart
index 7634cee..0567ad4 100644
--- a/examples/api/lib/widgets/navigator/navigator_state.restorable_push_and_remove_until.0.dart
+++ b/examples/api/lib/widgets/navigator/navigator_state.restorable_push_and_remove_until.0.dart
@@ -2,38 +2,35 @@
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
-// Flutter code sample for [NavigatorState.restorablePushAndRemoveUntil].
-
 import 'package:flutter/material.dart';
 
-void main() => runApp(const MyApp());
+/// Flutter code sample for [NavigatorState.restorablePushAndRemoveUntil].
 
-class MyApp extends StatelessWidget {
-  const MyApp({super.key});
+void main() => runApp(const RestorablePushAndRemoveUntilExampleApp());
 
-  static const String _title = 'Flutter Code Sample';
+class RestorablePushAndRemoveUntilExampleApp extends StatelessWidget {
+  const RestorablePushAndRemoveUntilExampleApp({super.key});
 
   @override
   Widget build(BuildContext context) {
     return const MaterialApp(
-      title: _title,
-      home: MyStatefulWidget(),
+      home: RestorablePushAndRemoveUntilExample(),
     );
   }
 }
 
-class MyStatefulWidget extends StatefulWidget {
-  const MyStatefulWidget({super.key});
+class RestorablePushAndRemoveUntilExample extends StatefulWidget {
+  const RestorablePushAndRemoveUntilExample({super.key});
 
   @override
-  State<MyStatefulWidget> createState() => _MyStatefulWidgetState();
+  State<RestorablePushAndRemoveUntilExample> createState() => _RestorablePushAndRemoveUntilExampleState();
 }
 
-class _MyStatefulWidgetState extends State<MyStatefulWidget> {
+class _RestorablePushAndRemoveUntilExampleState extends State<RestorablePushAndRemoveUntilExample> {
   @pragma('vm:entry-point')
   static Route<void> _myRouteBuilder(BuildContext context, Object? arguments) {
     return MaterialPageRoute<void>(
-      builder: (BuildContext context) => const MyStatefulWidget(),
+      builder: (BuildContext context) => const RestorablePushAndRemoveUntilExample(),
     );
   }
 
diff --git a/examples/api/lib/widgets/navigator/navigator_state.restorable_push_replacement.0.dart b/examples/api/lib/widgets/navigator/navigator_state.restorable_push_replacement.0.dart
index 15827da..b22315a 100644
--- a/examples/api/lib/widgets/navigator/navigator_state.restorable_push_replacement.0.dart
+++ b/examples/api/lib/widgets/navigator/navigator_state.restorable_push_replacement.0.dart
@@ -2,38 +2,35 @@
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
-// Flutter code sample for [NavigatorState.restorablePushReplacement].
-
 import 'package:flutter/material.dart';
 
-void main() => runApp(const MyApp());
+/// Flutter code sample for [NavigatorState.restorablePushReplacement].
 
-class MyApp extends StatelessWidget {
-  const MyApp({super.key});
+void main() => runApp(const RestorablePushReplacementExampleApp());
 
-  static const String _title = 'Flutter Code Sample';
+class RestorablePushReplacementExampleApp extends StatelessWidget {
+  const RestorablePushReplacementExampleApp({super.key});
 
   @override
   Widget build(BuildContext context) {
     return const MaterialApp(
-      title: _title,
-      home: MyStatefulWidget(),
+      home: RestorablePushReplacementExample(),
     );
   }
 }
 
-class MyStatefulWidget extends StatefulWidget {
-  const MyStatefulWidget({super.key});
+class RestorablePushReplacementExample extends StatefulWidget {
+  const RestorablePushReplacementExample({super.key});
 
   @override
-  State<MyStatefulWidget> createState() => _MyStatefulWidgetState();
+  State<RestorablePushReplacementExample> createState() => _RestorablePushReplacementExampleState();
 }
 
-class _MyStatefulWidgetState extends State<MyStatefulWidget> {
+class _RestorablePushReplacementExampleState extends State<RestorablePushReplacementExample> {
   @pragma('vm:entry-point')
   static Route<void> _myRouteBuilder(BuildContext context, Object? arguments) {
     return MaterialPageRoute<void>(
-      builder: (BuildContext context) => const MyStatefulWidget(),
+      builder: (BuildContext context) => const RestorablePushReplacementExample(),
     );
   }
 
diff --git a/examples/api/lib/widgets/navigator/restorable_route_future.0.dart b/examples/api/lib/widgets/navigator/restorable_route_future.0.dart
index 7318bfb..ddf8efc 100644
--- a/examples/api/lib/widgets/navigator/restorable_route_future.0.dart
+++ b/examples/api/lib/widgets/navigator/restorable_route_future.0.dart
@@ -2,14 +2,14 @@
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
-// Flutter code sample for [RestorableRouteFuture].
-
 import 'package:flutter/material.dart';
 
-void main() => runApp(const MyApp());
+/// Flutter code sample for [RestorableRouteFuture].
 
-class MyApp extends StatelessWidget {
-  const MyApp({super.key});
+void main() => runApp(const RestorableRouteFutureExampleApp());
+
+class RestorableRouteFutureExampleApp extends StatelessWidget {
+  const RestorableRouteFutureExampleApp({super.key});
 
   @override
   Widget build(BuildContext context) {
@@ -40,8 +40,7 @@
   @override
   void initState() {
     super.initState();
-    _counterRoute = RestorableRouteFuture<int>(
-        onPresent: (NavigatorState navigator, Object? arguments) {
+    _counterRoute = RestorableRouteFuture<int>(onPresent: (NavigatorState navigator, Object? arguments) {
       // Defines what route should be shown (and how it should be added
       // to the navigator) when `RestorableRouteFuture.present` is called.
       return navigator.restorablePush(
@@ -74,8 +73,7 @@
   // A static `RestorableRouteBuilder` that can re-create the route during
   // state restoration.
   @pragma('vm:entry-point')
-  static Route<int> _counterRouteBuilder(
-      BuildContext context, Object? arguments) {
+  static Route<int> _counterRouteBuilder(BuildContext context, Object? arguments) {
     return MaterialPageRoute<int>(
       builder: (BuildContext context) => MyCounter(
         title: arguments!.toString(),
diff --git a/examples/api/lib/widgets/nested_scroll_view/nested_scroll_view.0.dart b/examples/api/lib/widgets/nested_scroll_view/nested_scroll_view.0.dart
index 7c165b7..1d49cb6 100644
--- a/examples/api/lib/widgets/nested_scroll_view/nested_scroll_view.0.dart
+++ b/examples/api/lib/widgets/nested_scroll_view/nested_scroll_view.0.dart
@@ -2,28 +2,25 @@
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
-// Flutter code sample for [NestedScrollView].
-
 import 'package:flutter/material.dart';
 
-void main() => runApp(const MyApp());
+/// Flutter code sample for [NestedScrollView].
 
-class MyApp extends StatelessWidget {
-  const MyApp({super.key});
+void main() => runApp(const NestedScrollViewExampleApp());
 
-  static const String _title = 'Flutter Code Sample';
+class NestedScrollViewExampleApp extends StatelessWidget {
+  const NestedScrollViewExampleApp({super.key});
 
   @override
   Widget build(BuildContext context) {
     return const MaterialApp(
-      title: _title,
-      home: MyStatelessWidget(),
+      home: NestedScrollViewExample(),
     );
   }
 }
 
-class MyStatelessWidget extends StatelessWidget {
-  const MyStatelessWidget({super.key});
+class NestedScrollViewExample extends StatelessWidget {
+  const NestedScrollViewExample({super.key});
 
   @override
   Widget build(BuildContext context) {
@@ -43,11 +40,9 @@
                 // scroll view thinks it has not been scrolled.
                 // This is not necessary if the "headerSliverBuilder" only builds
                 // widgets that do not overlap the next sliver.
-                handle:
-                    NestedScrollView.sliverOverlapAbsorberHandleFor(context),
+                handle: NestedScrollView.sliverOverlapAbsorberHandleFor(context),
                 sliver: SliverAppBar(
-                  title:
-                      const Text('Books'), // This is the title in the app bar.
+                  title: const Text('Books'), // This is the title in the app bar.
                   pinned: true,
                   expandedHeight: 150.0,
                   // The "forceElevated" property causes the SliverAppBar to show
@@ -93,9 +88,7 @@
                         SliverOverlapInjector(
                           // This is the flip side of the SliverOverlapAbsorber
                           // above.
-                          handle:
-                              NestedScrollView.sliverOverlapAbsorberHandleFor(
-                                  context),
+                          handle: NestedScrollView.sliverOverlapAbsorberHandleFor(context),
                         ),
                         SliverPadding(
                           padding: const EdgeInsets.all(8.0),
diff --git a/examples/api/lib/widgets/nested_scroll_view/nested_scroll_view.1.dart b/examples/api/lib/widgets/nested_scroll_view/nested_scroll_view.1.dart
index c00f2a3..560f18c 100644
--- a/examples/api/lib/widgets/nested_scroll_view/nested_scroll_view.1.dart
+++ b/examples/api/lib/widgets/nested_scroll_view/nested_scroll_view.1.dart
@@ -2,28 +2,25 @@
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
-// Flutter code sample for [NestedScrollView].
-
 import 'package:flutter/material.dart';
 
-void main() => runApp(const MyApp());
+/// Flutter code sample for [NestedScrollView].
 
-class MyApp extends StatelessWidget {
-  const MyApp({super.key});
+void main() => runApp(const NestedScrollViewExampleApp());
 
-  static const String _title = 'Flutter Code Sample';
+class NestedScrollViewExampleApp extends StatelessWidget {
+  const NestedScrollViewExampleApp({super.key});
 
   @override
   Widget build(BuildContext context) {
     return const MaterialApp(
-      title: _title,
-      home: MyStatelessWidget(),
+      home: NestedScrollViewExample(),
     );
   }
 }
 
-class MyStatelessWidget extends StatelessWidget {
-  const MyStatelessWidget({super.key});
+class NestedScrollViewExample extends StatelessWidget {
+  const NestedScrollViewExample({super.key});
 
   @override
   Widget build(BuildContext context) {
@@ -32,8 +29,7 @@
             // Setting floatHeaderSlivers to true is required in order to float
             // the outer slivers over the inner scrollable.
             floatHeaderSlivers: true,
-            headerSliverBuilder:
-                (BuildContext context, bool innerBoxIsScrolled) {
+            headerSliverBuilder: (BuildContext context, bool innerBoxIsScrolled) {
               return <Widget>[
                 SliverAppBar(
                   title: const Text('Floating Nested SliverAppBar'),
diff --git a/examples/api/lib/widgets/nested_scroll_view/nested_scroll_view.2.dart b/examples/api/lib/widgets/nested_scroll_view/nested_scroll_view.2.dart
index f3acbac..9ed8aae 100644
--- a/examples/api/lib/widgets/nested_scroll_view/nested_scroll_view.2.dart
+++ b/examples/api/lib/widgets/nested_scroll_view/nested_scroll_view.2.dart
@@ -2,34 +2,30 @@
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
-// Flutter code sample for [NestedScrollView].
-
 import 'package:flutter/material.dart';
 
-void main() => runApp(const MyApp());
+/// Flutter code sample for [NestedScrollView].
 
-class MyApp extends StatelessWidget {
-  const MyApp({super.key});
+void main() => runApp(const NestedScrollViewExampleApp());
 
-  static const String _title = 'Flutter Code Sample';
+class NestedScrollViewExampleApp extends StatelessWidget {
+  const NestedScrollViewExampleApp({super.key});
 
   @override
   Widget build(BuildContext context) {
     return const MaterialApp(
-      title: _title,
-      home: MyStatelessWidget(),
+      home: NestedScrollViewExample(),
     );
   }
 }
 
-class MyStatelessWidget extends StatelessWidget {
-  const MyStatelessWidget({super.key});
+class NestedScrollViewExample extends StatelessWidget {
+  const NestedScrollViewExample({super.key});
 
   @override
   Widget build(BuildContext context) {
     return Scaffold(
-        body: NestedScrollView(headerSliverBuilder:
-            (BuildContext context, bool innerBoxIsScrolled) {
+        body: NestedScrollView(headerSliverBuilder: (BuildContext context, bool innerBoxIsScrolled) {
       return <Widget>[
         SliverOverlapAbsorber(
           handle: NestedScrollView.sliverOverlapAbsorberHandleFor(context),
@@ -49,13 +45,11 @@
         // If the "controller" property is set, then this scroll view will not
         // be associated with the NestedScrollView.
         slivers: <Widget>[
-          SliverOverlapInjector(
-              handle: NestedScrollView.sliverOverlapAbsorberHandleFor(context)),
+          SliverOverlapInjector(handle: NestedScrollView.sliverOverlapAbsorberHandleFor(context)),
           SliverFixedExtentList(
             itemExtent: 48.0,
             delegate: SliverChildBuilderDelegate(
-              (BuildContext context, int index) =>
-                  ListTile(title: Text('Item $index')),
+              (BuildContext context, int index) => ListTile(title: Text('Item $index')),
               childCount: 30,
             ),
           ),
diff --git a/examples/api/lib/widgets/nested_scroll_view/nested_scroll_view_state.0.dart b/examples/api/lib/widgets/nested_scroll_view/nested_scroll_view_state.0.dart
index 4b27c48..6de7899 100644
--- a/examples/api/lib/widgets/nested_scroll_view/nested_scroll_view_state.0.dart
+++ b/examples/api/lib/widgets/nested_scroll_view/nested_scroll_view_state.0.dart
@@ -2,30 +2,27 @@
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
-// Flutter code sample for [NestedScrollViewState].
-
 import 'package:flutter/material.dart';
 
-void main() => runApp(const MyApp());
+/// Flutter code sample for [NestedScrollViewState].
 
-class MyApp extends StatelessWidget {
-  const MyApp({super.key});
+void main() => runApp(const NestedScrollViewStateExampleApp());
 
-  static const String _title = 'Flutter Code Sample';
+class NestedScrollViewStateExampleApp extends StatelessWidget {
+  const NestedScrollViewStateExampleApp({super.key});
 
   @override
   Widget build(BuildContext context) {
     return const MaterialApp(
-      title: _title,
-      home: MyStatelessWidget(),
+      home: NestedScrollViewStateExample(),
     );
   }
 }
 
 final GlobalKey<NestedScrollViewState> globalKey = GlobalKey();
 
-class MyStatelessWidget extends StatelessWidget {
-  const MyStatelessWidget({super.key});
+class NestedScrollViewStateExample extends StatelessWidget {
+  const NestedScrollViewStateExample({super.key});
 
   @override
   @override
diff --git a/examples/api/lib/widgets/notification_listener/notification.0.dart b/examples/api/lib/widgets/notification_listener/notification.0.dart
index bce2018..40f7040 100644
--- a/examples/api/lib/widgets/notification_listener/notification.0.dart
+++ b/examples/api/lib/widgets/notification_listener/notification.0.dart
@@ -2,28 +2,25 @@
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
-// Flutter code sample for [Notification].
-
 import 'package:flutter/material.dart';
 
-void main() => runApp(const MyApp());
+/// Flutter code sample for [Notification].
 
-class MyApp extends StatelessWidget {
-  const MyApp({super.key});
+void main() => runApp(const NotificationExampleApp());
 
-  static const String _title = 'Flutter Code Sample';
+class NotificationExampleApp extends StatelessWidget {
+  const NotificationExampleApp({super.key});
 
   @override
   Widget build(BuildContext context) {
     return const MaterialApp(
-      title: _title,
-      home: MyStatelessWidget(),
+      home: NotificationExample(),
     );
   }
 }
 
-class MyStatelessWidget extends StatelessWidget {
-  const MyStatelessWidget({super.key});
+class NotificationExample extends StatelessWidget {
+  const NotificationExample({super.key});
 
   static const List<String> _tabs = <String>['Months', 'Days'];
   static const List<String> _months = <String>[
@@ -54,11 +51,10 @@
             return true;
           },
           child: NestedScrollView(
-            headerSliverBuilder:
-                (BuildContext context, bool innerBoxIsScrolled) {
+            headerSliverBuilder: (BuildContext context, bool innerBoxIsScrolled) {
               return <Widget>[
                 SliverAppBar(
-                  title: const Text('Flutter Code Sample'),
+                  title: const Text('Notification Sample'),
                   pinned: true,
                   floating: true,
                   bottom: TabBar(
diff --git a/examples/api/lib/widgets/overflow_bar/overflow_bar.0.dart b/examples/api/lib/widgets/overflow_bar/overflow_bar.0.dart
index 338df0d..e870d72 100644
--- a/examples/api/lib/widgets/overflow_bar/overflow_bar.0.dart
+++ b/examples/api/lib/widgets/overflow_bar/overflow_bar.0.dart
@@ -2,33 +2,30 @@
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
-// Flutter code sample for [OverflowBar].
-
 import 'package:flutter/material.dart';
 
-void main() => runApp(const MyApp());
+/// Flutter code sample for [OverflowBar].
 
-class MyApp extends StatelessWidget {
-  const MyApp({super.key});
+void main() => runApp(const OverflowBarExampleApp());
 
-  static const String _title = 'Flutter Code Sample';
+class OverflowBarExampleApp extends StatelessWidget {
+  const OverflowBarExampleApp({super.key});
 
   @override
   Widget build(BuildContext context) {
     return MaterialApp(
-      title: _title,
       home: Scaffold(
-        appBar: AppBar(title: const Text(_title)),
+        appBar: AppBar(title: const Text('OverflowBar Sample')),
         body: const Center(
-          child: MyStatelessWidget(),
+          child: OverflowBarExample(),
         ),
       ),
     );
   }
 }
 
-class MyStatelessWidget extends StatelessWidget {
-  const MyStatelessWidget({super.key});
+class OverflowBarExample extends StatelessWidget {
+  const OverflowBarExample({super.key});
 
   @override
   Widget build(BuildContext context) {
@@ -39,8 +36,7 @@
       child: Material(
         color: Colors.white,
         elevation: 24,
-        shape: const RoundedRectangleBorder(
-            borderRadius: BorderRadius.all(Radius.circular(4))),
+        shape: const RoundedRectangleBorder(borderRadius: BorderRadius.all(Radius.circular(4))),
         child: Padding(
           padding: const EdgeInsets.all(8),
           child: SingleChildScrollView(
@@ -56,9 +52,7 @@
                     overflowAlignment: OverflowBarAlignment.end,
                     children: <Widget>[
                       TextButton(child: const Text('Cancel'), onPressed: () {}),
-                      TextButton(
-                          child: const Text('Really Really Cancel'),
-                          onPressed: () {}),
+                      TextButton(child: const Text('Really Really Cancel'), onPressed: () {}),
                       OutlinedButton(child: const Text('OK'), onPressed: () {}),
                     ],
                   ),
diff --git a/examples/api/lib/widgets/overlay/overlay.0.dart b/examples/api/lib/widgets/overlay/overlay.0.dart
index fa2bab7..41a769c 100644
--- a/examples/api/lib/widgets/overlay/overlay.0.dart
+++ b/examples/api/lib/widgets/overlay/overlay.0.dart
@@ -2,10 +2,10 @@
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
-// Flutter code sample for [Overlay].
-
 import 'package:flutter/material.dart';
 
+/// Flutter code sample for [Overlay].
+
 void main() => runApp(const OverlayApp());
 
 class OverlayApp extends StatelessWidget {
@@ -65,13 +65,13 @@
                           children: <Widget>[
                             Text(
                               'Explore page',
-                                style: TextStyle(
-                                  color: Colors.red,
-                                ),
+                              style: TextStyle(
+                                color: Colors.red,
                               ),
+                            ),
                             Icon(
                               Icons.arrow_downward,
-                              color: Colors.red
+                              color: Colors.red,
                             ),
                           ],
                         );
@@ -80,13 +80,13 @@
                           children: <Widget>[
                             Text(
                               'Commute page',
-                                style: TextStyle(
-                                  color: Colors.green,
-                                ),
+                              style: TextStyle(
+                                color: Colors.green,
                               ),
+                            ),
                             Icon(
                               Icons.arrow_downward,
-                              color: Colors.green
+                              color: Colors.green,
                             ),
                           ],
                         );
@@ -95,13 +95,13 @@
                           children: <Widget>[
                             Text(
                               'Saved page',
-                                style: TextStyle(
-                                  color: Colors.orange,
-                                ),
+                              style: TextStyle(
+                                color: Colors.orange,
                               ),
+                            ),
                             Icon(
                               Icons.arrow_downward,
-                              color: Colors.orange
+                              color: Colors.orange,
                             ),
                           ],
                         );
diff --git a/examples/api/lib/widgets/overlay/overlay_portal.0.dart b/examples/api/lib/widgets/overlay/overlay_portal.0.dart
index d0465bc..a3fcead 100644
--- a/examples/api/lib/widgets/overlay/overlay_portal.0.dart
+++ b/examples/api/lib/widgets/overlay/overlay_portal.0.dart
@@ -2,19 +2,18 @@
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
-// Flutter code sample for OverlayPortal
-
 import 'package:flutter/material.dart';
 
-void main() => runApp(const MyApp());
+/// Flutter code sample for [OverlayPortal].
 
-class MyApp extends StatelessWidget {
-  const MyApp({super.key});
+void main() => runApp(const OverlayPortalExampleApp());
+
+class OverlayPortalExampleApp extends StatelessWidget {
+  const OverlayPortalExampleApp({super.key});
 
   @override
   Widget build(BuildContext context) {
     return MaterialApp(
-      title: 'Flutter Code Sample',
       home: Scaffold(
         appBar: AppBar(title: const Text('OverlayPortal Example')),
         body: const Center(child: ClickableTooltipWidget()),
diff --git a/examples/api/lib/widgets/overscroll_indicator/glowing_overscroll_indicator.0.dart b/examples/api/lib/widgets/overscroll_indicator/glowing_overscroll_indicator.0.dart
index ac9705b..fc695e4 100644
--- a/examples/api/lib/widgets/overscroll_indicator/glowing_overscroll_indicator.0.dart
+++ b/examples/api/lib/widgets/overscroll_indicator/glowing_overscroll_indicator.0.dart
@@ -2,36 +2,32 @@
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
-// Flutter code sample for [GlowingOverscrollIndicator].
-
 import 'package:flutter/material.dart';
 
-void main() => runApp(const MyApp());
+/// Flutter code sample for [GlowingOverscrollIndicator].
 
-class MyApp extends StatelessWidget {
-  const MyApp({super.key});
+void main() => runApp(const GlowingOverscrollIndicatorExampleApp());
 
-  static const String _title = 'Flutter Code Sample';
+class GlowingOverscrollIndicatorExampleApp extends StatelessWidget {
+  const GlowingOverscrollIndicatorExampleApp({super.key});
 
   @override
   Widget build(BuildContext context) {
     return MaterialApp(
-      title: _title,
       home: Scaffold(
-        appBar: AppBar(title: const Text(_title)),
-        body: const MyStatelessWidget(),
+        appBar: AppBar(title: const Text('GlowingOverscrollIndicator Sample')),
+        body: const GlowingOverscrollIndicatorExample(),
       ),
     );
   }
 }
 
-class MyStatelessWidget extends StatelessWidget {
-  const MyStatelessWidget({super.key});
+class GlowingOverscrollIndicatorExample extends StatelessWidget {
+  const GlowingOverscrollIndicatorExample({super.key});
 
   @override
   Widget build(BuildContext context) {
-    final double leadingPaintOffset =
-        MediaQuery.of(context).padding.top + AppBar().preferredSize.height;
+    final double leadingPaintOffset = MediaQuery.of(context).padding.top + AppBar().preferredSize.height;
     return NotificationListener<OverscrollIndicatorNotification>(
       onNotification: (OverscrollIndicatorNotification notification) {
         if (notification.leading) {
diff --git a/examples/api/lib/widgets/overscroll_indicator/glowing_overscroll_indicator.1.dart b/examples/api/lib/widgets/overscroll_indicator/glowing_overscroll_indicator.1.dart
index 2ad79f9..a9a5532 100644
--- a/examples/api/lib/widgets/overscroll_indicator/glowing_overscroll_indicator.1.dart
+++ b/examples/api/lib/widgets/overscroll_indicator/glowing_overscroll_indicator.1.dart
@@ -2,31 +2,28 @@
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
-// Flutter code sample for [GlowingOverscrollIndicator].
-
 import 'package:flutter/material.dart';
 
-void main() => runApp(const MyApp());
+/// Flutter code sample for [GlowingOverscrollIndicator].
 
-class MyApp extends StatelessWidget {
-  const MyApp({super.key});
+void main() => runApp(const GlowingOverscrollIndicatorExampleApp());
 
-  static const String _title = 'Flutter Code Sample';
+class GlowingOverscrollIndicatorExampleApp extends StatelessWidget {
+  const GlowingOverscrollIndicatorExampleApp({super.key});
 
   @override
   Widget build(BuildContext context) {
     return MaterialApp(
-      title: _title,
       home: Scaffold(
-        appBar: AppBar(title: const Text(_title)),
-        body: const MyStatelessWidget(),
+        appBar: AppBar(title: const Text('GlowingOverscrollIndicator Sample')),
+        body: const GlowingOverscrollIndicatorExample(),
       ),
     );
   }
 }
 
-class MyStatelessWidget extends StatelessWidget {
-  const MyStatelessWidget({super.key});
+class GlowingOverscrollIndicatorExample extends StatelessWidget {
+  const GlowingOverscrollIndicatorExample({super.key});
 
   @override
   Widget build(BuildContext context) {
diff --git a/examples/api/lib/widgets/page_storage/page_storage.0.dart b/examples/api/lib/widgets/page_storage/page_storage.0.dart
index b6d541e..78c7319 100644
--- a/examples/api/lib/widgets/page_storage/page_storage.0.dart
+++ b/examples/api/lib/widgets/page_storage/page_storage.0.dart
@@ -2,14 +2,14 @@
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
-// Flutter code sample for [PageStorage].
-
 import 'package:flutter/material.dart';
 
-void main() => runApp(const MyApp());
+/// Flutter code sample for [PageStorage].
 
-class MyApp extends StatelessWidget {
-  const MyApp({super.key});
+void main() => runApp(const PageStorageExampleApp());
+
+class PageStorageExampleApp extends StatelessWidget {
+  const PageStorageExampleApp({super.key});
 
   @override
   Widget build(BuildContext context) {
diff --git a/examples/api/lib/widgets/page_view/page_view.0.dart b/examples/api/lib/widgets/page_view/page_view.0.dart
index f21d689..862aafc 100644
--- a/examples/api/lib/widgets/page_view/page_view.0.dart
+++ b/examples/api/lib/widgets/page_view/page_view.0.dart
@@ -2,31 +2,28 @@
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
-// Flutter code sample for [PageView].
-
 import 'package:flutter/material.dart';
 
-void main() => runApp(const MyApp());
+/// Flutter code sample for [PageView].
 
-class MyApp extends StatelessWidget {
-  const MyApp({super.key});
+void main() => runApp(const PageViewExampleApp());
 
-  static const String _title = 'Flutter Code Sample';
+class PageViewExampleApp extends StatelessWidget {
+  const PageViewExampleApp({super.key});
 
   @override
   Widget build(BuildContext context) {
     return MaterialApp(
-      title: _title,
       home: Scaffold(
-        appBar: AppBar(title: const Text(_title)),
-        body: const MyStatelessWidget(),
+        appBar: AppBar(title: const Text('PageView Sample')),
+        body: const PageViewExample(),
       ),
     );
   }
 }
 
-class MyStatelessWidget extends StatelessWidget {
-  const MyStatelessWidget({super.key});
+class PageViewExample extends StatelessWidget {
+  const PageViewExample({super.key});
 
   @override
   Widget build(BuildContext context) {
diff --git a/examples/api/lib/widgets/preferred_size/preferred_size.0.dart b/examples/api/lib/widgets/preferred_size/preferred_size.0.dart
index e04de9c..8ea542f 100644
--- a/examples/api/lib/widgets/preferred_size/preferred_size.0.dart
+++ b/examples/api/lib/widgets/preferred_size/preferred_size.0.dart
@@ -2,22 +2,19 @@
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
-// Flutter code sample for [PreferredSize].
-
 import 'package:flutter/material.dart';
 
-void main() => runApp(const MyApp());
+/// Flutter code sample for [PreferredSize].
 
-class MyApp extends StatelessWidget {
-  const MyApp({super.key});
+void main() => runApp(const PreferredSizeExampleApp());
 
-  static const String _title = 'Flutter Code Sample';
+class PreferredSizeExampleApp extends StatelessWidget {
+  const PreferredSizeExampleApp({super.key});
 
   @override
   Widget build(BuildContext context) {
     return const MaterialApp(
-      title: _title,
-      home: MyStatelessWidget(),
+      home: PreferredSizeExample(),
     );
   }
 }
@@ -63,8 +60,8 @@
   }
 }
 
-class MyStatelessWidget extends StatelessWidget {
-  const MyStatelessWidget({super.key});
+class PreferredSizeExample extends StatelessWidget {
+  const PreferredSizeExample({super.key});
 
   @override
   Widget build(BuildContext context) {
diff --git a/examples/api/lib/widgets/restoration/restoration_mixin.0.dart b/examples/api/lib/widgets/restoration/restoration_mixin.0.dart
index 3a4c9e2..5f401a2 100644
--- a/examples/api/lib/widgets/restoration/restoration_mixin.0.dart
+++ b/examples/api/lib/widgets/restoration/restoration_mixin.0.dart
@@ -2,10 +2,10 @@
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
-// Flutter code sample for [RestorationMixin].
-
 import 'package:flutter/material.dart';
 
+/// Flutter code sample for [RestorationMixin].
+
 void main() => runApp(const RestorationExampleApp());
 
 class RestorationExampleApp extends StatelessWidget {
@@ -32,8 +32,7 @@
 
 // The [State] object uses the [RestorationMixin] to make the current value
 // of the counter restorable.
-class _RestorableCounterState extends State<RestorableCounter>
-    with RestorationMixin {
+class _RestorableCounterState extends State<RestorableCounter> with RestorationMixin {
   // The current value of the counter is stored in a [RestorableProperty].
   // During state restoration it is automatically restored to its old value.
   // If no restoration data is available to restore the counter from, it is
diff --git a/examples/api/lib/widgets/restoration_properties/restorable_value.0.dart b/examples/api/lib/widgets/restoration_properties/restorable_value.0.dart
index 1b33167..f16a699 100644
--- a/examples/api/lib/widgets/restoration_properties/restorable_value.0.dart
+++ b/examples/api/lib/widgets/restoration_properties/restorable_value.0.dart
@@ -2,41 +2,40 @@
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
-// Flutter code sample for [RestorableValue].
-
 import 'package:flutter/material.dart';
 
-void main() => runApp(const MyApp());
+/// Flutter code sample for [RestorableValue].
 
-class MyApp extends StatelessWidget {
-  const MyApp({super.key});
+void main() => runApp(const RestorableValueExampleApp());
+
+class RestorableValueExampleApp extends StatelessWidget {
+  const RestorableValueExampleApp({super.key});
 
   @override
   Widget build(BuildContext context) {
     return WidgetsApp(
-      title: 'Flutter Code Sample',
+      title: 'RestorableValue Sample',
       color: const Color(0xffffffff),
       builder: (BuildContext context, Widget? child) {
         return const Center(
-          child: MyStatefulWidget(restorationId: 'main'),
+          child: RestorableValueExample(restorationId: 'main'),
         );
       },
     );
   }
 }
 
-class MyStatefulWidget extends StatefulWidget {
-  const MyStatefulWidget({super.key, this.restorationId});
+class RestorableValueExample extends StatefulWidget {
+  const RestorableValueExample({super.key, this.restorationId});
 
   final String? restorationId;
 
   @override
-  State<MyStatefulWidget> createState() => _MyStatefulWidgetState();
+  State<RestorableValueExample> createState() => _RestorableValueExampleState();
 }
 
 /// RestorationProperty objects can be used because of RestorationMixin.
-class _MyStatefulWidgetState extends State<MyStatefulWidget>
-    with RestorationMixin {
+class _RestorableValueExampleState extends State<RestorableValueExample> with RestorationMixin {
   // In this example, the restoration ID for the mixin is passed in through
   // the [StatefulWidget]'s constructor.
   @override
diff --git a/examples/api/lib/widgets/routes/popup_route.0.dart b/examples/api/lib/widgets/routes/popup_route.0.dart
index c3b6a82..ea1384e 100644
--- a/examples/api/lib/widgets/routes/popup_route.0.dart
+++ b/examples/api/lib/widgets/routes/popup_route.0.dart
@@ -2,10 +2,10 @@
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
-// Flutter code sample for [PopupRoute].
-
 import 'package:flutter/material.dart';
 
+/// Flutter code sample for [PopupRoute].
+
 void main() => runApp(const PopupRouteApp());
 
 class PopupRouteApp extends StatelessWidget {
diff --git a/examples/api/lib/widgets/routes/show_general_dialog.0.dart b/examples/api/lib/widgets/routes/show_general_dialog.0.dart
index 33073c8..339a2ce 100644
--- a/examples/api/lib/widgets/routes/show_general_dialog.0.dart
+++ b/examples/api/lib/widgets/routes/show_general_dialog.0.dart
@@ -2,10 +2,10 @@
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
-// Flutter code sample for [showGeneralDialog].
-
 import 'package:flutter/material.dart';
 
+/// Flutter code sample for [showGeneralDialog].
+
 void main() => runApp(const GeneralDialogApp());
 
 class GeneralDialogApp extends StatelessWidget {
@@ -39,8 +39,7 @@
   }
 
   @pragma('vm:entry-point')
-  static Route<Object?> _dialogBuilder(
-      BuildContext context, Object? arguments) {
+  static Route<Object?> _dialogBuilder(BuildContext context, Object? arguments) {
     return RawDialogRoute<void>(
       pageBuilder: (
         BuildContext context,
diff --git a/examples/api/lib/widgets/scroll_position/scroll_metrics_notification.0.dart b/examples/api/lib/widgets/scroll_position/scroll_metrics_notification.0.dart
index a667161..cd53ffc 100644
--- a/examples/api/lib/widgets/scroll_position/scroll_metrics_notification.0.dart
+++ b/examples/api/lib/widgets/scroll_position/scroll_metrics_notification.0.dart
@@ -2,10 +2,10 @@
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
-// Flutter code sample for [ScrollMetricsNotification].
-
 import 'package:flutter/material.dart';
 
+/// Flutter code sample for [ScrollMetricsNotification].
+
 void main() => runApp(const ScrollMetricsDemo());
 
 class ScrollMetricsDemo extends StatefulWidget {
diff --git a/examples/api/lib/widgets/scroll_view/custom_scroll_view.1.dart b/examples/api/lib/widgets/scroll_view/custom_scroll_view.1.dart
index 2822dad..213175d 100644
--- a/examples/api/lib/widgets/scroll_view/custom_scroll_view.1.dart
+++ b/examples/api/lib/widgets/scroll_view/custom_scroll_view.1.dart
@@ -2,34 +2,31 @@
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
-// Flutter code sample for [CustomScrollView].
-
 import 'package:flutter/material.dart';
 
-void main() => runApp(const MyApp());
+/// Flutter code sample for [CustomScrollView].
 
-class MyApp extends StatelessWidget {
-  const MyApp({super.key});
+void main() => runApp(const CustomScrollViewExampleApp());
 
-  static const String _title = 'Flutter Code Sample';
+class CustomScrollViewExampleApp extends StatelessWidget {
+  const CustomScrollViewExampleApp({super.key});
 
   @override
   Widget build(BuildContext context) {
     return const MaterialApp(
-      title: _title,
-      home: MyStatefulWidget(),
+      home: CustomScrollViewExample(),
     );
   }
 }
 
-class MyStatefulWidget extends StatefulWidget {
-  const MyStatefulWidget({super.key});
+class CustomScrollViewExample extends StatefulWidget {
+  const CustomScrollViewExample({super.key});
 
   @override
-  State<MyStatefulWidget> createState() => _MyStatefulWidgetState();
+  State<CustomScrollViewExample> createState() => _CustomScrollViewExampleState();
 }
 
-class _MyStatefulWidgetState extends State<MyStatefulWidget> {
+class _CustomScrollViewExampleState extends State<CustomScrollViewExample> {
   List<int> top = <int>[];
   List<int> bottom = <int>[0];
 
diff --git a/examples/api/lib/widgets/scroll_view/listview_select.1.dart b/examples/api/lib/widgets/scroll_view/list_view.0.dart
similarity index 89%
rename from examples/api/lib/widgets/scroll_view/listview_select.1.dart
rename to examples/api/lib/widgets/scroll_view/list_view.0.dart
index d1e915f..954995f 100644
--- a/examples/api/lib/widgets/scroll_view/listview_select.1.dart
+++ b/examples/api/lib/widgets/scroll_view/list_view.0.dart
@@ -2,22 +2,18 @@
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
-// Flutter code sample for [ListTile] selection in a ListView or GridView.
-// Long press any ListTile to enable selection mode.
-
 import 'package:flutter/material.dart';
 
-void main() => runApp(const MyApp());
+/// Flutter code sample for [ListTile] selection in a [ListView] or [GridView].
 
-class MyApp extends StatelessWidget {
-  const MyApp({super.key});
+void main() => runApp(const ListViewExampleApp());
 
-  static const String _title = 'Flutter Code Sample';
+class ListViewExampleApp extends StatelessWidget {
+  const ListViewExampleApp({super.key});
 
   @override
   Widget build(BuildContext context) {
     return const MaterialApp(
-      title: _title,
       home: ListTileSelectExample(),
     );
   }
@@ -104,8 +100,7 @@
                   onPressed: () {
                     _selectAll = !_selectAll;
                     setState(() {
-                      _selected =
-                          List<bool>.generate(listLength, (_) => _selectAll);
+                      _selected = List<bool>.generate(listLength, (_) => _selectAll);
                     });
                   }),
           ],
@@ -161,8 +156,7 @@
   Widget build(BuildContext context) {
     return GridView.builder(
         itemCount: widget.selectedList.length,
-        gridDelegate:
-            const SliverGridDelegateWithFixedCrossAxisCount(crossAxisCount: 2),
+        gridDelegate: const SliverGridDelegateWithFixedCrossAxisCount(crossAxisCount: 2),
         itemBuilder: (_, int index) {
           return InkWell(
             onTap: () => _toggle(index),
@@ -177,9 +171,7 @@
             child: GridTile(
                 child: Container(
               child: widget.isSelectionMode
-                  ? Checkbox(
-                      onChanged: (bool? x) => _toggle(index),
-                      value: widget.selectedList[index])
+                  ? Checkbox(onChanged: (bool? x) => _toggle(index), value: widget.selectedList[index])
                   : const Icon(Icons.image),
             )),
           );
diff --git a/examples/api/lib/widgets/scrollbar/raw_scrollbar.0.dart b/examples/api/lib/widgets/scrollbar/raw_scrollbar.0.dart
index c8e0ac0..c707aa1 100644
--- a/examples/api/lib/widgets/scrollbar/raw_scrollbar.0.dart
+++ b/examples/api/lib/widgets/scrollbar/raw_scrollbar.0.dart
@@ -2,45 +2,41 @@
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
-// Flutter code sample for [RawScrollbar].
-
 import 'package:flutter/material.dart';
 
-void main() => runApp(const MyApp());
+/// Flutter code sample for [RawScrollbar].
 
-class MyApp extends StatelessWidget {
-  const MyApp({super.key});
+void main() => runApp(const RawScrollbarExampleApp());
 
-  static const String _title = 'Flutter Code Sample';
+class RawScrollbarExampleApp extends StatelessWidget {
+  const RawScrollbarExampleApp({super.key});
 
   @override
   Widget build(BuildContext context) {
     return MaterialApp(
-      title: _title,
       home: Scaffold(
-        appBar: AppBar(title: const Text(_title)),
+        appBar: AppBar(title: const Text('RawScrollbar Sample')),
         body: const Center(
-          child: MyStatefulWidget(),
+          child: RawScrollbarExample(),
         ),
       ),
     );
   }
 }
 
-class MyStatefulWidget extends StatefulWidget {
-  const MyStatefulWidget({super.key});
+class RawScrollbarExample extends StatefulWidget {
+  const RawScrollbarExample({super.key});
 
   @override
-  State<MyStatefulWidget> createState() => _MyStatefulWidgetState();
+  State<RawScrollbarExample> createState() => _RawScrollbarExampleState();
 }
 
-class _MyStatefulWidgetState extends State<MyStatefulWidget> {
+class _RawScrollbarExampleState extends State<RawScrollbarExample> {
   final ScrollController _firstController = ScrollController();
 
   @override
   Widget build(BuildContext context) {
-    return LayoutBuilder(
-        builder: (BuildContext context, BoxConstraints constraints) {
+    return LayoutBuilder(builder: (BuildContext context, BoxConstraints constraints) {
       return Row(
         children: <Widget>[
           SizedBox(
@@ -78,9 +74,7 @@
                     itemBuilder: (BuildContext context, int index) {
                       return Container(
                           height: 50,
-                          color: index.isEven
-                              ? Colors.amberAccent
-                              : Colors.blueAccent,
+                          color: index.isEven ? Colors.amberAccent : Colors.blueAccent,
                           child: Padding(
                             padding: const EdgeInsets.all(8.0),
                             child: Text('Scrollable 2 : Index $index'),
diff --git a/examples/api/lib/widgets/scrollbar/raw_scrollbar.1.dart b/examples/api/lib/widgets/scrollbar/raw_scrollbar.1.dart
index 4b5ed24..2ff22cf 100644
--- a/examples/api/lib/widgets/scrollbar/raw_scrollbar.1.dart
+++ b/examples/api/lib/widgets/scrollbar/raw_scrollbar.1.dart
@@ -2,39 +2,35 @@
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
-// Flutter code sample for [RawScrollbar].
-
 import 'package:flutter/material.dart';
 
-void main() => runApp(const MyApp());
+/// Flutter code sample for [RawScrollbar].
 
-class MyApp extends StatelessWidget {
-  const MyApp({super.key});
+void main() => runApp(const RawScrollbarExampleApp());
 
-  static const String _title = 'Flutter Code Sample';
+class RawScrollbarExampleApp extends StatelessWidget {
+  const RawScrollbarExampleApp({super.key});
 
   @override
   Widget build(BuildContext context) {
     return MaterialApp(
-      title: _title,
       home: Scaffold(
-        appBar: AppBar(title: const Text(_title)),
-        body: const MyStatelessWidget(),
+        appBar: AppBar(title: const Text('RawScrollbar Sample')),
+        body: const RawScrollbarExample(),
       ),
     );
   }
 }
 
-class MyStatelessWidget extends StatelessWidget {
-  const MyStatelessWidget({super.key});
+class RawScrollbarExample extends StatelessWidget {
+  const RawScrollbarExample({super.key});
 
   @override
   Widget build(BuildContext context) {
     return RawScrollbar(
       child: GridView.builder(
         itemCount: 120,
-        gridDelegate:
-            const SliverGridDelegateWithFixedCrossAxisCount(crossAxisCount: 3),
+        gridDelegate: const SliverGridDelegateWithFixedCrossAxisCount(crossAxisCount: 3),
         itemBuilder: (BuildContext context, int index) {
           return Center(
             child: Text('item $index'),
diff --git a/examples/api/lib/widgets/scrollbar/raw_scrollbar.2.dart b/examples/api/lib/widgets/scrollbar/raw_scrollbar.2.dart
index 72447b5..f8aeb10 100644
--- a/examples/api/lib/widgets/scrollbar/raw_scrollbar.2.dart
+++ b/examples/api/lib/widgets/scrollbar/raw_scrollbar.2.dart
@@ -2,37 +2,34 @@
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
-// Flutter code sample for [RawScrollbar].
-
 import 'package:flutter/material.dart';
 
-void main() => runApp(const MyApp());
+/// Flutter code sample for [RawScrollbar].
 
-class MyApp extends StatelessWidget {
-  const MyApp({super.key});
+void main() => runApp(const RawScrollbarExampleApp());
 
-  static const String _title = 'Flutter Code Sample';
+class RawScrollbarExampleApp extends StatelessWidget {
+  const RawScrollbarExampleApp({super.key});
 
   @override
   Widget build(BuildContext context) {
     return MaterialApp(
-      title: _title,
       home: Scaffold(
-        appBar: AppBar(title: const Text(_title)),
-        body: const MyStatefulWidget(),
+        appBar: AppBar(title: const Text('RawScrollbar Sample')),
+        body: const RawScrollbarExample(),
       ),
     );
   }
 }
 
-class MyStatefulWidget extends StatefulWidget {
-  const MyStatefulWidget({super.key});
+class RawScrollbarExample extends StatefulWidget {
+  const RawScrollbarExample({super.key});
 
   @override
-  State<MyStatefulWidget> createState() => _MyStatefulWidgetState();
+  State<RawScrollbarExample> createState() => _RawScrollbarExampleState();
 }
 
-class _MyStatefulWidgetState extends State<MyStatefulWidget> {
+class _RawScrollbarExampleState extends State<RawScrollbarExample> {
   final ScrollController _controllerOne = ScrollController();
 
   @override
@@ -43,8 +40,7 @@
       child: GridView.builder(
         controller: _controllerOne,
         itemCount: 120,
-        gridDelegate:
-            const SliverGridDelegateWithFixedCrossAxisCount(crossAxisCount: 3),
+        gridDelegate: const SliverGridDelegateWithFixedCrossAxisCount(crossAxisCount: 3),
         itemBuilder: (BuildContext context, int index) {
           return Center(
             child: Text('item $index'),
diff --git a/examples/api/lib/widgets/scrollbar/raw_scrollbar.desktop.0.dart b/examples/api/lib/widgets/scrollbar/raw_scrollbar.desktop.0.dart
index 31d231b..b917dac 100644
--- a/examples/api/lib/widgets/scrollbar/raw_scrollbar.desktop.0.dart
+++ b/examples/api/lib/widgets/scrollbar/raw_scrollbar.desktop.0.dart
@@ -2,10 +2,10 @@
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
-// Flutter code sample for [Scrollbar].
-
 import 'package:flutter/material.dart';
 
+/// Flutter code sample for [Scrollbar].
+
 void main() => runApp(const ScrollbarApp());
 
 class ScrollbarApp extends StatelessWidget {
@@ -17,27 +17,26 @@
       home: Scaffold(
         appBar: AppBar(title: const Text('Scrollbar Sample')),
         body: const Center(
-          child: MyStatefulWidget(),
+          child: DesktopExample(),
         ),
       ),
     );
   }
 }
 
-class MyStatefulWidget extends StatefulWidget {
-  const MyStatefulWidget({super.key});
+class DesktopExample extends StatefulWidget {
+  const DesktopExample({super.key});
 
   @override
-  State<MyStatefulWidget> createState() => _MyStatefulWidgetState();
+  State<DesktopExample> createState() => _DesktopExampleState();
 }
 
-class _MyStatefulWidgetState extends State<MyStatefulWidget> {
+class _DesktopExampleState extends State<DesktopExample> {
   final ScrollController controller = ScrollController();
 
   @override
   Widget build(BuildContext context) {
-    return LayoutBuilder(
-        builder: (BuildContext context, BoxConstraints constraints) {
+    return LayoutBuilder(builder: (BuildContext context, BoxConstraints constraints) {
       return Row(
         children: <Widget>[
           SizedBox(
@@ -73,8 +72,7 @@
                 thickness: 20.0,
                 thumbVisibility: true,
                 child: ScrollConfiguration(
-                  behavior: ScrollConfiguration.of(context)
-                      .copyWith(scrollbars: false),
+                  behavior: ScrollConfiguration.of(context).copyWith(scrollbars: false),
                   child: ListView.builder(
                     primary: true,
                     itemCount: 100,
diff --git a/examples/api/lib/widgets/scrollbar/raw_scrollbar.shape.0.dart b/examples/api/lib/widgets/scrollbar/raw_scrollbar.shape.0.dart
index dd58df9..1993cc5 100644
--- a/examples/api/lib/widgets/scrollbar/raw_scrollbar.shape.0.dart
+++ b/examples/api/lib/widgets/scrollbar/raw_scrollbar.shape.0.dart
@@ -2,35 +2,31 @@
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
-// Flutter code sample for [RawScrollbar.shape].
-
 import 'package:flutter/material.dart';
 
-void main() => runApp(const MyApp());
+/// Flutter code sample for [RawScrollbar.shape].
 
-class MyApp extends StatelessWidget {
-  const MyApp({super.key});
+void main() => runApp(const ShapeExampleApp());
 
-  static const String _title = 'Flutter Code Sample';
+class ShapeExampleApp extends StatelessWidget {
+  const ShapeExampleApp({super.key});
 
   @override
   Widget build(BuildContext context) {
     return const MaterialApp(
-      title: _title,
-      home: MyStatelessWidget(),
+      home: ShapeExample(),
     );
   }
 }
 
-class MyStatelessWidget extends StatelessWidget {
-  const MyStatelessWidget({super.key});
+class ShapeExample extends StatelessWidget {
+  const ShapeExample({super.key});
 
   @override
   Widget build(BuildContext context) {
     return Scaffold(
       body: RawScrollbar(
-        shape: const StadiumBorder(
-            side: BorderSide(color: Colors.brown, width: 3.0)),
+        shape: const StadiumBorder(side: BorderSide(color: Colors.brown, width: 3.0)),
         thickness: 15.0,
         thumbColor: Colors.blue,
         thumbVisibility: true,
@@ -41,8 +37,7 @@
           // PrimaryScrollController requires ScrollView.primary be set.
           primary: true,
           physics: const BouncingScrollPhysics(),
-          children: List<Text>.generate(
-              100, (int index) => Text((index * index).toString())),
+          children: List<Text>.generate(100, (int index) => Text((index * index).toString())),
         ),
       ),
     );
diff --git a/examples/api/lib/widgets/shared_app_data/shared_app_data.0.dart b/examples/api/lib/widgets/shared_app_data/shared_app_data.0.dart
index 8063eab..2a2c698 100644
--- a/examples/api/lib/widgets/shared_app_data/shared_app_data.0.dart
+++ b/examples/api/lib/widgets/shared_app_data/shared_app_data.0.dart
@@ -2,12 +2,12 @@
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
-// Flutter code sample for [SharedAppData].
-
 import 'package:flutter/material.dart';
 
+/// Flutter code sample for [SharedAppData].
+
 class ShowSharedValue extends StatelessWidget {
-  const ShowSharedValue({ super.key, required this.appDataKey });
+  const ShowSharedValue({super.key, required this.appDataKey});
 
   final String appDataKey;
 
@@ -25,7 +25,7 @@
 // widgets to be rebuilt. In this case that's the ShowSharedValue widget that's
 // displaying the value of a key whose value has been updated.
 class Home extends StatefulWidget {
-  const Home({ super.key });
+  const Home({super.key});
 
   @override
   State<Home> createState() => _HomeState();
@@ -52,7 +52,8 @@
                 _fooVersion += 1;
                 // Changing the SharedAppData's value for 'foo' causes the
                 // widgets that depend on 'foo' to be rebuilt.
-                SharedAppData.setValue<String, String?>(context, 'foo', 'FOO $_fooVersion'); // no need to call setState()
+                SharedAppData.setValue<String, String?>(
+                    context, 'foo', 'FOO $_fooVersion'); // no need to call setState()
               },
             ),
             const SizedBox(height: 16),
@@ -60,7 +61,8 @@
               child: const Text('change bar'),
               onPressed: () {
                 _barVersion += 1;
-                SharedAppData.setValue<String, String?>(context, 'bar', 'BAR $_barVersion');  // no need to call setState()
+                SharedAppData.setValue<String, String?>(
+                    context, 'bar', 'BAR $_barVersion'); // no need to call setState()
               },
             ),
           ],
diff --git a/examples/api/lib/widgets/shared_app_data/shared_app_data.1.dart b/examples/api/lib/widgets/shared_app_data/shared_app_data.1.dart
index 123e2bc..76b081e 100644
--- a/examples/api/lib/widgets/shared_app_data/shared_app_data.1.dart
+++ b/examples/api/lib/widgets/shared_app_data/shared_app_data.1.dart
@@ -2,11 +2,11 @@
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
-// Flutter code sample for [SharedAppData].
-
 import 'package:flutter/foundation.dart';
 import 'package:flutter/material.dart';
 
+/// Flutter code sample for [SharedAppData].
+
 // A single lazily-constructed object that's shared with the entire application
 // via `SharedObject.of(context)`. The value of the object can be changed with
 // `SharedObject.reset(context)`. Resetting the value will cause all of the
@@ -34,7 +34,7 @@
 // An example of a widget which depends on the SharedObject's value, which might
 // be provided - along with SharedObject - in a Dart package.
 class CustomWidget extends StatelessWidget {
-  const CustomWidget({ super.key });
+  const CustomWidget({super.key});
 
   @override
   Widget build(BuildContext context) {
@@ -49,14 +49,12 @@
 }
 
 class Home extends StatelessWidget {
-  const Home({ super.key });
+  const Home({super.key});
 
   @override
   Widget build(BuildContext context) {
     return const Scaffold(
-      body: Center(
-        child: CustomWidget()
-      ),
+      body: Center(child: CustomWidget()),
     );
   }
 }
diff --git a/examples/api/lib/widgets/shortcuts/character_activator.0.dart b/examples/api/lib/widgets/shortcuts/character_activator.0.dart
index 56ed8a4..08e703c 100644
--- a/examples/api/lib/widgets/shortcuts/character_activator.0.dart
+++ b/examples/api/lib/widgets/shortcuts/character_activator.0.dart
@@ -2,25 +2,22 @@
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
-// Flutter code sample for [CharacterActivator].
-
 import 'package:flutter/material.dart';
 
-void main() => runApp(const MyApp());
+/// Flutter code sample for [CharacterActivator].
 
-class MyApp extends StatelessWidget {
-  const MyApp({super.key});
+void main() => runApp(const CharacterActivatorExampleApp());
 
-  static const String _title = 'Flutter Code Sample';
+class CharacterActivatorExampleApp extends StatelessWidget {
+  const CharacterActivatorExampleApp({super.key});
 
   @override
   Widget build(BuildContext context) {
     return MaterialApp(
-      title: _title,
       home: Scaffold(
-        appBar: AppBar(title: const Text(_title)),
+        appBar: AppBar(title: const Text('CharacterActivator Sample')),
         body: const Center(
-          child: MyStatefulWidget(),
+          child: CharacterActivatorExample(),
         ),
       ),
     );
@@ -31,14 +28,14 @@
   const HelpMenuIntent();
 }
 
-class MyStatefulWidget extends StatefulWidget {
-  const MyStatefulWidget({super.key});
+class CharacterActivatorExample extends StatefulWidget {
+  const CharacterActivatorExample({super.key});
 
   @override
-  State<MyStatefulWidget> createState() => _MyStatefulWidgetState();
+  State<CharacterActivatorExample> createState() => _CharacterActivatorExampleState();
 }
 
-class _MyStatefulWidgetState extends State<MyStatefulWidget> {
+class _CharacterActivatorExampleState extends State<CharacterActivatorExample> {
   @override
   Widget build(BuildContext context) {
     return Shortcuts(
diff --git a/examples/api/lib/widgets/shortcuts/logical_key_set.0.dart b/examples/api/lib/widgets/shortcuts/logical_key_set.0.dart
index 6a35565..e784c72 100644
--- a/examples/api/lib/widgets/shortcuts/logical_key_set.0.dart
+++ b/examples/api/lib/widgets/shortcuts/logical_key_set.0.dart
@@ -2,26 +2,23 @@
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
-// Flutter code sample for [LogicalKeySet].
-
 import 'package:flutter/material.dart';
 import 'package:flutter/services.dart';
 
-void main() => runApp(const MyApp());
+/// Flutter code sample for [LogicalKeySet].
 
-class MyApp extends StatelessWidget {
-  const MyApp({super.key});
+void main() => runApp(const LogicalKeySetExampleApp());
 
-  static const String _title = 'Flutter Code Sample';
+class LogicalKeySetExampleApp extends StatelessWidget {
+  const LogicalKeySetExampleApp({super.key});
 
   @override
   Widget build(BuildContext context) {
     return MaterialApp(
-      title: _title,
       home: Scaffold(
-        appBar: AppBar(title: const Text(_title)),
+        appBar: AppBar(title: const Text('LogicalKeySet Sample')),
         body: const Center(
-          child: MyStatefulWidget(),
+          child: LogicalKeySetExample(),
         ),
       ),
     );
@@ -32,22 +29,21 @@
   const IncrementIntent();
 }
 
-class MyStatefulWidget extends StatefulWidget {
-  const MyStatefulWidget({super.key});
+class LogicalKeySetExample extends StatefulWidget {
+  const LogicalKeySetExample({super.key});
 
   @override
-  State<MyStatefulWidget> createState() => _MyStatefulWidgetState();
+  State<LogicalKeySetExample> createState() => _LogicalKeySetExampleState();
 }
 
-class _MyStatefulWidgetState extends State<MyStatefulWidget> {
+class _LogicalKeySetExampleState extends State<LogicalKeySetExample> {
   int count = 0;
 
   @override
   Widget build(BuildContext context) {
     return Shortcuts(
       shortcuts: <ShortcutActivator, Intent>{
-        LogicalKeySet(LogicalKeyboardKey.keyC, LogicalKeyboardKey.controlLeft):
-            const IncrementIntent(),
+        LogicalKeySet(LogicalKeyboardKey.keyC, LogicalKeyboardKey.controlLeft): const IncrementIntent(),
       },
       child: Actions(
         actions: <Type, Action<Intent>>{
diff --git a/examples/api/lib/widgets/shortcuts/shortcuts.0.dart b/examples/api/lib/widgets/shortcuts/shortcuts.0.dart
index 772ef74..d88825c 100644
--- a/examples/api/lib/widgets/shortcuts/shortcuts.0.dart
+++ b/examples/api/lib/widgets/shortcuts/shortcuts.0.dart
@@ -2,26 +2,23 @@
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
-// Flutter code sample for [Shortcuts].
-
 import 'package:flutter/material.dart';
 import 'package:flutter/services.dart';
 
-void main() => runApp(const MyApp());
+/// Flutter code sample for [Shortcuts].
 
-class MyApp extends StatelessWidget {
-  const MyApp({super.key});
+void main() => runApp(const ShortcutsExampleApp());
 
-  static const String _title = 'Flutter Code Sample';
+class ShortcutsExampleApp extends StatelessWidget {
+  const ShortcutsExampleApp({super.key});
 
   @override
   Widget build(BuildContext context) {
     return MaterialApp(
-      title: _title,
       home: Scaffold(
-        appBar: AppBar(title: const Text(_title)),
+        appBar: AppBar(title: const Text('Shortcuts Sample')),
         body: const Center(
-          child: MyStatefulWidget(),
+          child: ShortcutsExample(),
         ),
       ),
     );
@@ -36,14 +33,14 @@
   const DecrementIntent();
 }
 
-class MyStatefulWidget extends StatefulWidget {
-  const MyStatefulWidget({super.key});
+class ShortcutsExample extends StatefulWidget {
+  const ShortcutsExample({super.key});
 
   @override
-  State<MyStatefulWidget> createState() => _MyStatefulWidgetState();
+  State<ShortcutsExample> createState() => _ShortcutsExampleState();
 }
 
-class _MyStatefulWidgetState extends State<MyStatefulWidget> {
+class _ShortcutsExampleState extends State<ShortcutsExample> {
   int count = 0;
 
   @override
@@ -71,8 +68,7 @@
           child: Column(
             children: <Widget>[
               const Text('Add to the counter by pressing the up arrow key'),
-              const Text(
-                  'Subtract from the counter by pressing the down arrow key'),
+              const Text('Subtract from the counter by pressing the down arrow key'),
               Text('count: $count'),
             ],
           ),
diff --git a/examples/api/lib/widgets/shortcuts/shortcuts.1.dart b/examples/api/lib/widgets/shortcuts/shortcuts.1.dart
index 81964d0..6f1281d 100644
--- a/examples/api/lib/widgets/shortcuts/shortcuts.1.dart
+++ b/examples/api/lib/widgets/shortcuts/shortcuts.1.dart
@@ -2,26 +2,23 @@
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
-// Flutter code sample for [Shortcuts].
-
 import 'package:flutter/material.dart';
 import 'package:flutter/services.dart';
 
-void main() => runApp(const MyApp());
+/// Flutter code sample for [Shortcuts].
 
-class MyApp extends StatelessWidget {
-  const MyApp({super.key});
+void main() => runApp(const ShortcutsExampleApp());
 
-  static const String _title = 'Flutter Code Sample';
+class ShortcutsExampleApp extends StatelessWidget {
+  const ShortcutsExampleApp({super.key});
 
   @override
   Widget build(BuildContext context) {
     return MaterialApp(
-      title: _title,
       home: Scaffold(
-        appBar: AppBar(title: const Text(_title)),
+        appBar: AppBar(title: const Text('Shortcuts Sample')),
         body: const Center(
-          child: MyStatefulWidget(),
+          child: ShortcutsExample(),
         ),
       ),
     );
@@ -75,14 +72,14 @@
   }
 }
 
-class MyStatefulWidget extends StatefulWidget {
-  const MyStatefulWidget({super.key});
+class ShortcutsExample extends StatefulWidget {
+  const ShortcutsExample({super.key});
 
   @override
-  State<MyStatefulWidget> createState() => _MyStatefulWidgetState();
+  State<ShortcutsExample> createState() => _ShortcutsExampleState();
 }
 
-class _MyStatefulWidgetState extends State<MyStatefulWidget> {
+class _ShortcutsExampleState extends State<ShortcutsExample> {
   Model model = Model();
 
   @override
@@ -102,8 +99,7 @@
           child: Column(
             children: <Widget>[
               const Text('Add to the counter by pressing the up arrow key'),
-              const Text(
-                  'Subtract from the counter by pressing the down arrow key'),
+              const Text('Subtract from the counter by pressing the down arrow key'),
               AnimatedBuilder(
                 animation: model,
                 builder: (BuildContext context, Widget? child) {
diff --git a/examples/api/lib/widgets/shortcuts/single_activator.single_activator.0.dart b/examples/api/lib/widgets/shortcuts/single_activator.single_activator.0.dart
index 30973a0..5cb5eb8 100644
--- a/examples/api/lib/widgets/shortcuts/single_activator.single_activator.0.dart
+++ b/examples/api/lib/widgets/shortcuts/single_activator.single_activator.0.dart
@@ -2,26 +2,23 @@
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
-// Flutter code sample for [SingleActivator.SingleActivator].
-
 import 'package:flutter/material.dart';
 import 'package:flutter/services.dart';
 
-void main() => runApp(const MyApp());
+/// Flutter code sample for [SingleActivator.SingleActivator].
 
-class MyApp extends StatelessWidget {
-  const MyApp({super.key});
+void main() => runApp(const SingleActivatorExampleApp());
 
-  static const String _title = 'Flutter Code Sample';
+class SingleActivatorExampleApp extends StatelessWidget {
+  const SingleActivatorExampleApp({super.key});
 
   @override
   Widget build(BuildContext context) {
     return MaterialApp(
-      title: _title,
       home: Scaffold(
-        appBar: AppBar(title: const Text(_title)),
+        appBar: AppBar(title: const Text('SingleActivator Sample')),
         body: const Center(
-          child: MyStatefulWidget(),
+          child: SingleActivatorExample(),
         ),
       ),
     );
@@ -32,22 +29,21 @@
   const IncrementIntent();
 }
 
-class MyStatefulWidget extends StatefulWidget {
-  const MyStatefulWidget({super.key});
+class SingleActivatorExample extends StatefulWidget {
+  const SingleActivatorExample({super.key});
 
   @override
-  State<MyStatefulWidget> createState() => _MyStatefulWidgetState();
+  State<SingleActivatorExample> createState() => _SingleActivatorExampleState();
 }
 
-class _MyStatefulWidgetState extends State<MyStatefulWidget> {
+class _SingleActivatorExampleState extends State<SingleActivatorExample> {
   int count = 0;
 
   @override
   Widget build(BuildContext context) {
     return Shortcuts(
       shortcuts: const <ShortcutActivator, Intent>{
-        SingleActivator(LogicalKeyboardKey.keyC, control: true):
-            IncrementIntent(),
+        SingleActivator(LogicalKeyboardKey.keyC, control: true): IncrementIntent(),
       },
       child: Actions(
         actions: <Type, Action<Intent>>{
diff --git a/examples/api/lib/widgets/single_child_scroll_view/single_child_scroll_view.0.dart b/examples/api/lib/widgets/single_child_scroll_view/single_child_scroll_view.0.dart
index 110c5b1..c0be195 100644
--- a/examples/api/lib/widgets/single_child_scroll_view/single_child_scroll_view.0.dart
+++ b/examples/api/lib/widgets/single_child_scroll_view/single_child_scroll_view.0.dart
@@ -2,28 +2,25 @@
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
-// Flutter code sample for [SingleChildScrollView].
-
 import 'package:flutter/material.dart';
 
-void main() => runApp(const MyApp());
+/// Flutter code sample for [SingleChildScrollView].
 
-class MyApp extends StatelessWidget {
-  const MyApp({super.key});
+void main() => runApp(const SingleChildScrollViewExampleApp());
 
-  static const String _title = 'Flutter Code Sample';
+class SingleChildScrollViewExampleApp extends StatelessWidget {
+  const SingleChildScrollViewExampleApp({super.key});
 
   @override
   Widget build(BuildContext context) {
     return const MaterialApp(
-      title: _title,
-      home: MyStatelessWidget(),
+      home: SingleChildScrollViewExample(),
     );
   }
 }
 
-class MyStatelessWidget extends StatelessWidget {
-  const MyStatelessWidget({super.key});
+class SingleChildScrollViewExample extends StatelessWidget {
+  const SingleChildScrollViewExample({super.key});
 
   @override
   Widget build(BuildContext context) {
diff --git a/examples/api/lib/widgets/single_child_scroll_view/single_child_scroll_view.1.dart b/examples/api/lib/widgets/single_child_scroll_view/single_child_scroll_view.1.dart
index 4a82db2..9a21cb2 100644
--- a/examples/api/lib/widgets/single_child_scroll_view/single_child_scroll_view.1.dart
+++ b/examples/api/lib/widgets/single_child_scroll_view/single_child_scroll_view.1.dart
@@ -2,28 +2,25 @@
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
-// Flutter code sample for [SingleChildScrollView].
-
 import 'package:flutter/material.dart';
 
-void main() => runApp(const MyApp());
+/// Flutter code sample for [SingleChildScrollView].
 
-class MyApp extends StatelessWidget {
-  const MyApp({super.key});
+void main() => runApp(const SingleChildScrollViewExampleApp());
 
-  static const String _title = 'Flutter Code Sample';
+class SingleChildScrollViewExampleApp extends StatelessWidget {
+  const SingleChildScrollViewExampleApp({super.key});
 
   @override
   Widget build(BuildContext context) {
     return const MaterialApp(
-      title: _title,
-      home: MyStatelessWidget(),
+      home: SingleChildScrollViewExample(),
     );
   }
 }
 
-class MyStatelessWidget extends StatelessWidget {
-  const MyStatelessWidget({super.key});
+class SingleChildScrollViewExample extends StatelessWidget {
+  const SingleChildScrollViewExample({super.key});
 
   @override
   Widget build(BuildContext context) {
diff --git a/examples/api/lib/widgets/sliver/sliver_opacity.1.dart b/examples/api/lib/widgets/sliver/sliver_opacity.1.dart
index 64e0434..e2ea349 100644
--- a/examples/api/lib/widgets/sliver/sliver_opacity.1.dart
+++ b/examples/api/lib/widgets/sliver/sliver_opacity.1.dart
@@ -2,34 +2,31 @@
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
-// Flutter code sample for [SliverOpacity].
-
 import 'package:flutter/material.dart';
 
-void main() => runApp(const MyApp());
+/// Flutter code sample for [SliverOpacity].
 
-class MyApp extends StatelessWidget {
-  const MyApp({super.key});
+void main() => runApp(const SliverOpacityExampleApp());
 
-  static const String _title = 'Flutter Code Sample';
+class SliverOpacityExampleApp extends StatelessWidget {
+  const SliverOpacityExampleApp({super.key});
 
   @override
   Widget build(BuildContext context) {
     return const MaterialApp(
-      title: _title,
-      home: MyStatefulWidget(),
+      home: SliverOpacityExample(),
     );
   }
 }
 
-class MyStatefulWidget extends StatefulWidget {
-  const MyStatefulWidget({super.key});
+class SliverOpacityExample extends StatefulWidget {
+  const SliverOpacityExample({super.key});
 
   @override
-  State<MyStatefulWidget> createState() => _MyStatefulWidgetState();
+  State<SliverOpacityExample> createState() => _SliverOpacityExampleState();
 }
 
-class _MyStatefulWidgetState extends State<MyStatefulWidget> {
+class _SliverOpacityExampleState extends State<SliverOpacityExample> {
   static const List<Widget> _listItems = <Widget>[
     ListTile(title: Text('Now you see me,')),
     ListTile(title: Text("Now you don't!")),
diff --git a/examples/api/lib/widgets/sliver_fill/sliver_fill_remaining.0.dart b/examples/api/lib/widgets/sliver_fill/sliver_fill_remaining.0.dart
index bc34e5c..fe5c745 100644
--- a/examples/api/lib/widgets/sliver_fill/sliver_fill_remaining.0.dart
+++ b/examples/api/lib/widgets/sliver_fill/sliver_fill_remaining.0.dart
@@ -2,31 +2,28 @@
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
-// Flutter code sample for [SliverFillRemaining].
-
 import 'package:flutter/material.dart';
 
-void main() => runApp(const MyApp());
+/// Flutter code sample for [SliverFillRemaining].
 
-class MyApp extends StatelessWidget {
-  const MyApp({super.key});
+void main() => runApp(const SliverFillRemainingExampleApp());
 
-  static const String _title = 'Flutter Code Sample';
+class SliverFillRemainingExampleApp extends StatelessWidget {
+  const SliverFillRemainingExampleApp({super.key});
 
   @override
   Widget build(BuildContext context) {
     return MaterialApp(
-      title: _title,
       home: Scaffold(
-        appBar: AppBar(title: const Text(_title)),
-        body: const MyStatelessWidget(),
+        appBar: AppBar(title: const Text('SliverFillRemaining Sample')),
+        body: const SliverFillRemainingExample(),
       ),
     );
   }
 }
 
-class MyStatelessWidget extends StatelessWidget {
-  const MyStatelessWidget({super.key});
+class SliverFillRemainingExample extends StatelessWidget {
+  const SliverFillRemainingExample({super.key});
 
   @override
   Widget build(BuildContext context) {
diff --git a/examples/api/lib/widgets/sliver_fill/sliver_fill_remaining.1.dart b/examples/api/lib/widgets/sliver_fill/sliver_fill_remaining.1.dart
index b31b70b..5d0f4c8 100644
--- a/examples/api/lib/widgets/sliver_fill/sliver_fill_remaining.1.dart
+++ b/examples/api/lib/widgets/sliver_fill/sliver_fill_remaining.1.dart
@@ -2,31 +2,28 @@
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
-// Flutter code sample for [SliverFillRemaining].
-
 import 'package:flutter/material.dart';
 
-void main() => runApp(const MyApp());
+/// Flutter code sample for [SliverFillRemaining].
 
-class MyApp extends StatelessWidget {
-  const MyApp({super.key});
+void main() => runApp(const SliverFillRemainingExampleApp());
 
-  static const String _title = 'Flutter Code Sample';
+class SliverFillRemainingExampleApp extends StatelessWidget {
+  const SliverFillRemainingExampleApp({super.key});
 
   @override
   Widget build(BuildContext context) {
     return MaterialApp(
-      title: _title,
       home: Scaffold(
-        appBar: AppBar(title: const Text(_title)),
-        body: const MyStatelessWidget(),
+        appBar: AppBar(title: const Text('SliverFillRemaining Sample')),
+        body: const SliverFillRemainingExample(),
       ),
     );
   }
 }
 
-class MyStatelessWidget extends StatelessWidget {
-  const MyStatelessWidget({super.key});
+class SliverFillRemainingExample extends StatelessWidget {
+  const SliverFillRemainingExample({super.key});
 
   @override
   Widget build(BuildContext context) {
diff --git a/examples/api/lib/widgets/sliver_fill/sliver_fill_remaining.2.dart b/examples/api/lib/widgets/sliver_fill/sliver_fill_remaining.2.dart
index fa4a748..5f3fff4 100644
--- a/examples/api/lib/widgets/sliver_fill/sliver_fill_remaining.2.dart
+++ b/examples/api/lib/widgets/sliver_fill/sliver_fill_remaining.2.dart
@@ -2,31 +2,28 @@
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
-// Flutter code sample for [SliverFillRemaining].
-
 import 'package:flutter/material.dart';
 
-void main() => runApp(const MyApp());
+/// Flutter code sample for [SliverFillRemaining].
 
-class MyApp extends StatelessWidget {
-  const MyApp({super.key});
+void main() => runApp(const SliverFillRemainingExampleApp());
 
-  static const String _title = 'Flutter Code Sample';
+class SliverFillRemainingExampleApp extends StatelessWidget {
+  const SliverFillRemainingExampleApp({super.key});
 
   @override
   Widget build(BuildContext context) {
     return MaterialApp(
-      title: _title,
       home: Scaffold(
-        appBar: AppBar(title: const Text(_title)),
-        body: const MyStatelessWidget(),
+        appBar: AppBar(title: const Text('SliverFillRemaining Sample')),
+        body: const SliverFillRemainingExample(),
       ),
     );
   }
 }
 
-class MyStatelessWidget extends StatelessWidget {
-  const MyStatelessWidget({super.key});
+class SliverFillRemainingExample extends StatelessWidget {
+  const SliverFillRemainingExample({super.key});
 
   @override
   Widget build(BuildContext context) {
diff --git a/examples/api/lib/widgets/sliver_fill/sliver_fill_remaining.3.dart b/examples/api/lib/widgets/sliver_fill/sliver_fill_remaining.3.dart
index 84db1ee..45d8626 100644
--- a/examples/api/lib/widgets/sliver_fill/sliver_fill_remaining.3.dart
+++ b/examples/api/lib/widgets/sliver_fill/sliver_fill_remaining.3.dart
@@ -2,31 +2,28 @@
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
-// Flutter code sample for [SliverFillRemaining].
-
 import 'package:flutter/material.dart';
 
-void main() => runApp(const MyApp());
+/// Flutter code sample for [SliverFillRemaining].
 
-class MyApp extends StatelessWidget {
-  const MyApp({super.key});
+void main() => runApp(const SliverFillRemainingExampleApp());
 
-  static const String _title = 'Flutter Code Sample';
+class SliverFillRemainingExampleApp extends StatelessWidget {
+  const SliverFillRemainingExampleApp({super.key});
 
   @override
   Widget build(BuildContext context) {
     return MaterialApp(
-      title: _title,
       home: Scaffold(
-        appBar: AppBar(title: const Text(_title)),
-        body: const MyStatelessWidget(),
+        appBar: AppBar(title: const Text('SliverFillRemaining Sample')),
+        body: const SliverFillRemainingExample(),
       ),
     );
   }
 }
 
-class MyStatelessWidget extends StatelessWidget {
-  const MyStatelessWidget({super.key});
+class SliverFillRemainingExample extends StatelessWidget {
+  const SliverFillRemainingExample({super.key});
 
   @override
   Widget build(BuildContext context) {
@@ -38,8 +35,7 @@
       // example, which are provided by default on the iOS platform.
       // BouncingScrollPhysics is combined with AlwaysScrollableScrollPhysics to
       // allow for the overscroll, regardless of the depth of the scrollable.
-      physics:
-          const BouncingScrollPhysics(parent: AlwaysScrollableScrollPhysics()),
+      physics: const BouncingScrollPhysics(parent: AlwaysScrollableScrollPhysics()),
       slivers: <Widget>[
         SliverToBoxAdapter(
           child: Container(
diff --git a/examples/api/lib/widgets/slotted_render_object_widget/slotted_multi_child_render_object_widget_mixin.0.dart b/examples/api/lib/widgets/slotted_render_object_widget/slotted_multi_child_render_object_widget_mixin.0.dart
index f623709..e93e5f9 100644
--- a/examples/api/lib/widgets/slotted_render_object_widget/slotted_multi_child_render_object_widget_mixin.0.dart
+++ b/examples/api/lib/widgets/slotted_render_object_widget/slotted_multi_child_render_object_widget_mixin.0.dart
@@ -2,11 +2,11 @@
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
-// Flutter code sample for [SlottedMultiChildRenderObjectWidgetMixin].
-
 import 'package:flutter/material.dart';
 import 'package:flutter/rendering.dart';
 
+/// Flutter code sample for [SlottedMultiChildRenderObjectWidgetMixin].
+
 /// Slots used for the children of [Diagonal] and [RenderDiagonal].
 enum DiagonalSlot {
   topLeft,
@@ -69,7 +69,8 @@
 /// A render object that demonstrates the usage of
 /// [SlottedContainerRenderObjectMixin] by providing slots for two children that
 /// will be arranged diagonally.
-class RenderDiagonal extends RenderBox with SlottedContainerRenderObjectMixin<DiagonalSlot>, DebugOverflowIndicatorMixin {
+class RenderDiagonal extends RenderBox
+    with SlottedContainerRenderObjectMixin<DiagonalSlot>, DebugOverflowIndicatorMixin {
   RenderDiagonal({Color? backgroundColor}) : _backgroundColor = backgroundColor;
 
   // Getters and setters to configure the [RenderObject] with the configuration
@@ -100,10 +101,8 @@
   @override
   Iterable<RenderBox> get children {
     return <RenderBox>[
-      if (_topLeft != null)
-        _topLeft!,
-      if (_bottomRight != null)
-        _bottomRight!,
+      if (_topLeft != null) _topLeft!,
+      if (_bottomRight != null) _bottomRight!,
     ];
   }
 
@@ -157,8 +156,7 @@
     if (backgroundColor != null) {
       context.canvas.drawRect(
         offset & size,
-        Paint()
-          ..color = backgroundColor!,
+        Paint()..color = backgroundColor!,
       );
     }
 
@@ -193,7 +191,7 @@
   // HIT TEST
 
   @override
-  bool hitTestChildren(BoxHitTestResult result, { required Offset position }) {
+  bool hitTestChildren(BoxHitTestResult result, {required Offset position}) {
     for (final RenderBox child in children) {
       final BoxParentData parentData = child.parentData! as BoxParentData;
       final bool isHit = result.addWithPaintOffset(
@@ -226,7 +224,8 @@
   double computeMaxIntrinsicWidth(double height) {
     final double topLeftWidth = _topLeft?.getMaxIntrinsicWidth(double.infinity) ?? 0;
     final double bottomRightWith = _bottomRight?.getMaxIntrinsicWidth(double.infinity) ?? 0;
-    return topLeftWidth + bottomRightWith;  }
+    return topLeftWidth + bottomRightWith;
+  }
 
   @override
   double computeMinIntrinsicHeight(double width) {
diff --git a/examples/api/lib/widgets/table/table.0.dart b/examples/api/lib/widgets/table/table.0.dart
index c917ccd..531b6e9 100644
--- a/examples/api/lib/widgets/table/table.0.dart
+++ b/examples/api/lib/widgets/table/table.0.dart
@@ -2,31 +2,28 @@
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
-// Flutter code sample for [Table].
-
 import 'package:flutter/material.dart';
 
-void main() => runApp(const MyApp());
+/// Flutter code sample for [Table].
 
-class MyApp extends StatelessWidget {
-  const MyApp({super.key});
+void main() => runApp(const TableExampleApp());
 
-  static const String _title = 'Flutter Code Sample';
+class TableExampleApp extends StatelessWidget {
+  const TableExampleApp({super.key});
 
   @override
   Widget build(BuildContext context) {
     return MaterialApp(
-      title: _title,
       home: Scaffold(
-        appBar: AppBar(title: const Text(_title)),
-        body: const MyStatelessWidget(),
+        appBar: AppBar(title: const Text('Table Sample')),
+        body: const TableExample(),
       ),
     );
   }
 }
 
-class MyStatelessWidget extends StatelessWidget {
-  const MyStatelessWidget({super.key});
+class TableExample extends StatelessWidget {
+  const TableExample({super.key});
 
   @override
   Widget build(BuildContext context) {
diff --git a/examples/api/lib/widgets/tap_region/text_field_tap_region.0.dart b/examples/api/lib/widgets/tap_region/text_field_tap_region.0.dart
index a755ebe..e4e08a4 100644
--- a/examples/api/lib/widgets/tap_region/text_field_tap_region.0.dart
+++ b/examples/api/lib/widgets/tap_region/text_field_tap_region.0.dart
@@ -2,11 +2,11 @@
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
-// Flutter code sample for [TextFieldTapRegion].
-
 import 'package:flutter/material.dart';
 import 'package:flutter/services.dart';
 
+/// Flutter code sample for [TextFieldTapRegion].
+
 void main() => runApp(const TapRegionApp());
 
 class TapRegionApp extends StatelessWidget {
diff --git a/examples/api/lib/widgets/text/text.0.dart b/examples/api/lib/widgets/text/text.0.dart
index 5a97202..26ea189 100644
--- a/examples/api/lib/widgets/text/text.0.dart
+++ b/examples/api/lib/widgets/text/text.0.dart
@@ -2,10 +2,10 @@
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
-// Flutter code sample for [DefaultTextStyle].
-
 import 'package:flutter/material.dart';
 
+/// Flutter code sample for [DefaultTextStyle].
+
 void main() => runApp(const DefaultTextStyleApp());
 
 class DefaultTextStyleApp extends StatelessWidget {
diff --git a/examples/api/lib/widgets/text_magnifier/text_magnifier.0.dart b/examples/api/lib/widgets/text_magnifier/text_magnifier.0.dart
index 86501d6..4afc7dc 100644
--- a/examples/api/lib/widgets/text_magnifier/text_magnifier.0.dart
+++ b/examples/api/lib/widgets/text_magnifier/text_magnifier.0.dart
@@ -5,10 +5,10 @@
 import 'package:flutter/foundation.dart';
 import 'package:flutter/material.dart';
 
-void main() => runApp(const MyApp(text: 'Hello world!'));
+void main() => runApp(const TextMagnifierExampleApp(text: 'Hello world!'));
 
-class MyApp extends StatelessWidget {
-  const MyApp({
+class TextMagnifierExampleApp extends StatelessWidget {
+  const TextMagnifierExampleApp({
     super.key,
     this.textDirection = TextDirection.ltr,
     required this.text,
@@ -62,8 +62,7 @@
     // positioning cases.
     return ValueListenableBuilder<MagnifierInfo>(
         valueListenable: magnifierInfo,
-        builder: (BuildContext context,
-            MagnifierInfo currentMagnifierInfo, _) {
+        builder: (BuildContext context, MagnifierInfo currentMagnifierInfo, _) {
           // We want to position the magnifier at the global position of the gesture.
           Offset magnifierPosition = currentMagnifierInfo.globalGesturePosition;
 
diff --git a/examples/api/lib/widgets/transitions/align_transition.0.dart b/examples/api/lib/widgets/transitions/align_transition.0.dart
index a978846..fa7118c 100644
--- a/examples/api/lib/widgets/transitions/align_transition.0.dart
+++ b/examples/api/lib/widgets/transitions/align_transition.0.dart
@@ -2,37 +2,33 @@
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
-// Flutter code sample for [AlignTransition].
-
 import 'package:flutter/material.dart';
 
-void main() => runApp(const MyApp());
+/// Flutter code sample for [AlignTransition].
 
-class MyApp extends StatelessWidget {
-  const MyApp({super.key});
+void main() => runApp(const AlignTransitionExampleApp());
 
-  static const String _title = 'Flutter Code Sample';
+class AlignTransitionExampleApp extends StatelessWidget {
+  const AlignTransitionExampleApp({super.key});
 
   @override
   Widget build(BuildContext context) {
     return const MaterialApp(
-      title: _title,
-      home: MyStatefulWidget(),
+      home: AlignTransitionExample(),
     );
   }
 }
 
-class MyStatefulWidget extends StatefulWidget {
-  const MyStatefulWidget({super.key});
+class AlignTransitionExample extends StatefulWidget {
+  const AlignTransitionExample({super.key});
 
   @override
-  State<MyStatefulWidget> createState() => _MyStatefulWidgetState();
+  State<AlignTransitionExample> createState() => _AlignTransitionExampleState();
 }
 
 /// [AnimationController]s can be created with `vsync: this` because of
 /// [TickerProviderStateMixin].
-class _MyStatefulWidgetState extends State<MyStatefulWidget>
-    with TickerProviderStateMixin {
+class _AlignTransitionExampleState extends State<AlignTransitionExample> with TickerProviderStateMixin {
   // Using `late final` for lazy initialization. See
   // https://dart.dev/null-safety/understanding-null-safety#lazy-initialization.
   late final AnimationController _controller = AnimationController(
diff --git a/examples/api/lib/widgets/transitions/animated_builder.0.dart b/examples/api/lib/widgets/transitions/animated_builder.0.dart
index 49d4d81..89abd21 100644
--- a/examples/api/lib/widgets/transitions/animated_builder.0.dart
+++ b/examples/api/lib/widgets/transitions/animated_builder.0.dart
@@ -2,39 +2,35 @@
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
-// Flutter code sample for [AnimatedBuilder].
-
 import 'dart:math' as math;
 
 import 'package:flutter/material.dart';
 
-void main() => runApp(const MyApp());
+/// Flutter code sample for [AnimatedBuilder].
 
-class MyApp extends StatelessWidget {
-  const MyApp({super.key});
+void main() => runApp(const AnimatedBuilderExampleApp());
 
-  static const String _title = 'Flutter Code Sample';
+class AnimatedBuilderExampleApp extends StatelessWidget {
+  const AnimatedBuilderExampleApp({super.key});
 
   @override
   Widget build(BuildContext context) {
     return const MaterialApp(
-      title: _title,
-      home: MyStatefulWidget(),
+      home: AnimatedBuilderExample(),
     );
   }
 }
 
-class MyStatefulWidget extends StatefulWidget {
-  const MyStatefulWidget({super.key});
+class AnimatedBuilderExample extends StatefulWidget {
+  const AnimatedBuilderExample({super.key});
 
   @override
-  State<MyStatefulWidget> createState() => _MyStatefulWidgetState();
+  State<AnimatedBuilderExample> createState() => _AnimatedBuilderExampleState();
 }
 
 /// AnimationControllers can be created with `vsync: this` because of
 /// TickerProviderStateMixin.
-class _MyStatefulWidgetState extends State<MyStatefulWidget>
-    with TickerProviderStateMixin {
+class _AnimatedBuilderExampleState extends State<AnimatedBuilderExample> with TickerProviderStateMixin {
   late final AnimationController _controller = AnimationController(
     duration: const Duration(seconds: 10),
     vsync: this,
diff --git a/examples/api/lib/widgets/transitions/animated_widget.0.dart b/examples/api/lib/widgets/transitions/animated_widget.0.dart
index 1ab888e..93c98bc 100644
--- a/examples/api/lib/widgets/transitions/animated_widget.0.dart
+++ b/examples/api/lib/widgets/transitions/animated_widget.0.dart
@@ -2,24 +2,21 @@
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
-// Flutter code sample for [AnimatedWidget].
-
 import 'dart:math' as math;
 
 import 'package:flutter/material.dart';
 
-void main() => runApp(const MyApp());
+/// Flutter code sample for [AnimatedWidget].
 
-class MyApp extends StatelessWidget {
-  const MyApp({super.key});
+void main() => runApp(const AnimatedWidgetExampleApp());
 
-  static const String _title = 'Flutter Code Sample';
+class AnimatedWidgetExampleApp extends StatelessWidget {
+  const AnimatedWidgetExampleApp({super.key});
 
   @override
   Widget build(BuildContext context) {
     return const MaterialApp(
-      title: _title,
-      home: MyStatefulWidget(),
+      home: AnimatedWidgetExample(),
     );
   }
 }
@@ -41,17 +38,16 @@
   }
 }
 
-class MyStatefulWidget extends StatefulWidget {
-  const MyStatefulWidget({super.key});
+class AnimatedWidgetExample extends StatefulWidget {
+  const AnimatedWidgetExample({super.key});
 
   @override
-  State<MyStatefulWidget> createState() => _MyStatefulWidgetState();
+  State<AnimatedWidgetExample> createState() => _AnimatedWidgetExampleState();
 }
 
 /// [AnimationController]s can be created with `vsync: this` because of
 /// [TickerProviderStateMixin].
-class _MyStatefulWidgetState extends State<MyStatefulWidget>
-    with TickerProviderStateMixin {
+class _AnimatedWidgetExampleState extends State<AnimatedWidgetExample> with TickerProviderStateMixin {
   late final AnimationController _controller = AnimationController(
     duration: const Duration(seconds: 10),
     vsync: this,
diff --git a/examples/api/lib/widgets/transitions/decorated_box_transition.0.dart b/examples/api/lib/widgets/transitions/decorated_box_transition.0.dart
index 703b44f..2ff7ef3 100644
--- a/examples/api/lib/widgets/transitions/decorated_box_transition.0.dart
+++ b/examples/api/lib/widgets/transitions/decorated_box_transition.0.dart
@@ -2,37 +2,33 @@
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
-// Flutter code sample for [DecoratedBoxTransition].
-
 import 'package:flutter/material.dart';
 
-void main() => runApp(const MyApp());
+/// Flutter code sample for [DecoratedBoxTransition].
 
-class MyApp extends StatelessWidget {
-  const MyApp({super.key});
+void main() => runApp(const DecoratedBoxTransitionExampleApp());
 
-  static const String _title = 'Flutter Code Sample';
+class DecoratedBoxTransitionExampleApp extends StatelessWidget {
+  const DecoratedBoxTransitionExampleApp({super.key});
 
   @override
   Widget build(BuildContext context) {
     return const MaterialApp(
-      title: _title,
-      home: MyStatefulWidget(),
+      home: DecoratedBoxTransitionExample(),
     );
   }
 }
 
-class MyStatefulWidget extends StatefulWidget {
-  const MyStatefulWidget({super.key});
+class DecoratedBoxTransitionExample extends StatefulWidget {
+  const DecoratedBoxTransitionExample({super.key});
 
   @override
-  State<MyStatefulWidget> createState() => _MyStatefulWidgetState();
+  State<DecoratedBoxTransitionExample> createState() => _DecoratedBoxTransitionExampleState();
 }
 
 /// [AnimationController]s can be created with `vsync: this` because of
 /// [TickerProviderStateMixin].
-class _MyStatefulWidgetState extends State<MyStatefulWidget>
-    with TickerProviderStateMixin {
+class _DecoratedBoxTransitionExampleState extends State<DecoratedBoxTransitionExample> with TickerProviderStateMixin {
   final DecorationTween decorationTween = DecorationTween(
     begin: BoxDecoration(
       color: const Color(0xFFFFFFFF),
diff --git a/examples/api/lib/widgets/transitions/default_text_style_transition.0.dart b/examples/api/lib/widgets/transitions/default_text_style_transition.0.dart
index 92185eb..bd62f97 100644
--- a/examples/api/lib/widgets/transitions/default_text_style_transition.0.dart
+++ b/examples/api/lib/widgets/transitions/default_text_style_transition.0.dart
@@ -2,36 +2,33 @@
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
-// Flutter code sample for [DefaultTextStyleTransition].
-
 import 'package:flutter/material.dart';
 
-void main() => runApp(const MyApp());
+/// Flutter code sample for [DefaultTextStyleTransition].
 
-class MyApp extends StatelessWidget {
-  const MyApp({super.key});
+void main() => runApp(const DefaultTextStyleTransitionExampleApp());
 
-  static const String _title = 'Flutter Code Sample';
+class DefaultTextStyleTransitionExampleApp extends StatelessWidget {
+  const DefaultTextStyleTransitionExampleApp({super.key});
 
   @override
   Widget build(BuildContext context) {
     return const MaterialApp(
-      title: _title,
-      home: MyStatefulWidget(),
+      home: DefaultTextStyleTransitionExample(),
     );
   }
 }
 
-class MyStatefulWidget extends StatefulWidget {
-  const MyStatefulWidget({super.key});
+class DefaultTextStyleTransitionExample extends StatefulWidget {
+  const DefaultTextStyleTransitionExample({super.key});
 
   @override
-  State<MyStatefulWidget> createState() => _MyStatefulWidgetState();
+  State<DefaultTextStyleTransitionExample> createState() => _DefaultTextStyleTransitionExampleState();
 }
 
 /// [AnimationController]s can be created with `vsync: this` because of
 /// [TickerProviderStateMixin].
-class _MyStatefulWidgetState extends State<MyStatefulWidget>
+class _DefaultTextStyleTransitionExampleState extends State<DefaultTextStyleTransitionExample>
     with TickerProviderStateMixin {
   late AnimationController _controller;
   late TextStyleTween _styleTween;
@@ -45,10 +42,8 @@
       vsync: this,
     )..repeat(reverse: true);
     _styleTween = TextStyleTween(
-      begin: const TextStyle(
-          fontSize: 50, color: Colors.blue, fontWeight: FontWeight.w900),
-      end: const TextStyle(
-          fontSize: 50, color: Colors.red, fontWeight: FontWeight.w100),
+      begin: const TextStyle(fontSize: 50, color: Colors.blue, fontWeight: FontWeight.w900),
+      end: const TextStyle(fontSize: 50, color: Colors.red, fontWeight: FontWeight.w100),
     );
     _curvedAnimation = CurvedAnimation(
       parent: _controller,
diff --git a/examples/api/lib/widgets/transitions/fade_transition.0.dart b/examples/api/lib/widgets/transitions/fade_transition.0.dart
index fbe97f5..a6dd324 100644
--- a/examples/api/lib/widgets/transitions/fade_transition.0.dart
+++ b/examples/api/lib/widgets/transitions/fade_transition.0.dart
@@ -2,37 +2,33 @@
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
-// Flutter code sample for [FadeTransition].
-
 import 'package:flutter/material.dart';
 
-void main() => runApp(const MyApp());
+/// Flutter code sample for [FadeTransition].
 
-class MyApp extends StatelessWidget {
-  const MyApp({super.key});
+void main() => runApp(const FadeTransitionExampleApp());
 
-  static const String _title = 'Flutter Code Sample';
+class FadeTransitionExampleApp extends StatelessWidget {
+  const FadeTransitionExampleApp({super.key});
 
   @override
   Widget build(BuildContext context) {
     return const MaterialApp(
-      title: _title,
-      home: MyStatefulWidget(),
+      home: FadeTransitionExample(),
     );
   }
 }
 
-class MyStatefulWidget extends StatefulWidget {
-  const MyStatefulWidget({super.key});
+class FadeTransitionExample extends StatefulWidget {
+  const FadeTransitionExample({super.key});
 
   @override
-  State<MyStatefulWidget> createState() => _MyStatefulWidgetState();
+  State<FadeTransitionExample> createState() => _FadeTransitionExampleState();
 }
 
 /// [AnimationController]s can be created with `vsync: this` because of
 /// [TickerProviderStateMixin].
-class _MyStatefulWidgetState extends State<MyStatefulWidget>
-    with TickerProviderStateMixin {
+class _FadeTransitionExampleState extends State<FadeTransitionExample> with TickerProviderStateMixin {
   late final AnimationController _controller = AnimationController(
     duration: const Duration(seconds: 2),
     vsync: this,
diff --git a/examples/api/lib/widgets/transitions/listenable_builder.0.dart b/examples/api/lib/widgets/transitions/listenable_builder.0.dart
index 26e9eed..e0cd2ef 100644
--- a/examples/api/lib/widgets/transitions/listenable_builder.0.dart
+++ b/examples/api/lib/widgets/transitions/listenable_builder.0.dart
@@ -2,10 +2,10 @@
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
-// Flutter code sample for [ListenableBuilder].
-
 import 'package:flutter/material.dart';
 
+/// Flutter code sample for [ListenableBuilder].
+
 void main() => runApp(const ListenableBuilderExample());
 
 /// This widget listens for changes in the focus state of the subtree defined by
diff --git a/examples/api/lib/widgets/transitions/listenable_builder.1.dart b/examples/api/lib/widgets/transitions/listenable_builder.1.dart
index eb737a7..4d83bad 100644
--- a/examples/api/lib/widgets/transitions/listenable_builder.1.dart
+++ b/examples/api/lib/widgets/transitions/listenable_builder.1.dart
@@ -2,11 +2,13 @@
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
-// Flutter code sample for a [ValueNotifier] with a [ListenableBuilder].
-
 import 'package:flutter/material.dart';
 
-void main() { runApp(const ListenableBuilderExample()); }
+/// Flutter code sample for a [ValueNotifier] with a [ListenableBuilder].
+
+void main() {
+  runApp(const ListenableBuilderExample());
+}
 
 class ListenableBuilderExample extends StatefulWidget {
   const ListenableBuilderExample({super.key});
diff --git a/examples/api/lib/widgets/transitions/listenable_builder.2.dart b/examples/api/lib/widgets/transitions/listenable_builder.2.dart
index d9c2e79..f417bfc 100644
--- a/examples/api/lib/widgets/transitions/listenable_builder.2.dart
+++ b/examples/api/lib/widgets/transitions/listenable_builder.2.dart
@@ -2,11 +2,13 @@
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
-// Flutter code sample for a [ChangeNotifier] with a [ListenableBuilder].
-
 import 'package:flutter/material.dart';
 
-void main() { runApp(const ListenableBuilderExample()); }
+/// Flutter code sample for a [ChangeNotifier] with a [ListenableBuilder].
+
+void main() {
+  runApp(const ListenableBuilderExample());
+}
 
 class CounterModel with ChangeNotifier {
   int _count = 0;
diff --git a/examples/api/lib/widgets/transitions/listenable_builder.3.dart b/examples/api/lib/widgets/transitions/listenable_builder.3.dart
index 518c331..9d65da2 100644
--- a/examples/api/lib/widgets/transitions/listenable_builder.3.dart
+++ b/examples/api/lib/widgets/transitions/listenable_builder.3.dart
@@ -2,12 +2,14 @@
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
-// Flutter code sample for a [ChangeNotifier] with a [ListenableBuilder].
-
 import 'dart:math' as math;
 import 'package:flutter/material.dart';
 
-void main() { runApp(const ListenableBuilderExample()); }
+/// Flutter code sample for a [ChangeNotifier] with a [ListenableBuilder].
+
+void main() {
+  runApp(const ListenableBuilderExample());
+}
 
 class ListModel with ChangeNotifier {
   final List<int> _values = <int>[];
diff --git a/examples/api/lib/widgets/transitions/positioned_transition.0.dart b/examples/api/lib/widgets/transitions/positioned_transition.0.dart
index ef8f6ee..5adf8b1 100644
--- a/examples/api/lib/widgets/transitions/positioned_transition.0.dart
+++ b/examples/api/lib/widgets/transitions/positioned_transition.0.dart
@@ -2,37 +2,33 @@
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
-// Flutter code sample for [PositionedTransition].
-
 import 'package:flutter/material.dart';
 
-void main() => runApp(const MyApp());
+/// Flutter code sample for [PositionedTransition].
 
-class MyApp extends StatelessWidget {
-  const MyApp({super.key});
+void main() => runApp(const PositionedTransitionExampleApp());
 
-  static const String _title = 'Flutter Code Sample';
+class PositionedTransitionExampleApp extends StatelessWidget {
+  const PositionedTransitionExampleApp({super.key});
 
   @override
   Widget build(BuildContext context) {
     return const MaterialApp(
-      title: _title,
-      home: MyStatefulWidget(),
+      home: PositionedTransitionExample(),
     );
   }
 }
 
-class MyStatefulWidget extends StatefulWidget {
-  const MyStatefulWidget({super.key});
+class PositionedTransitionExample extends StatefulWidget {
+  const PositionedTransitionExample({super.key});
 
   @override
-  State<MyStatefulWidget> createState() => _MyStatefulWidgetState();
+  State<PositionedTransitionExample> createState() => _PositionedTransitionExampleState();
 }
 
 /// [AnimationController]s can be created with `vsync: this` because of
 /// [TickerProviderStateMixin].
-class _MyStatefulWidgetState extends State<MyStatefulWidget>
-    with TickerProviderStateMixin {
+class _PositionedTransitionExampleState extends State<PositionedTransitionExample> with TickerProviderStateMixin {
   late final AnimationController _controller = AnimationController(
     duration: const Duration(seconds: 2),
     vsync: this,
@@ -57,17 +53,21 @@
             PositionedTransition(
               rect: RelativeRectTween(
                 begin: RelativeRect.fromSize(
-                    const Rect.fromLTWH(0, 0, smallLogo, smallLogo), biggest),
+                  const Rect.fromLTWH(0, 0, smallLogo, smallLogo),
+                  biggest,
+                ),
                 end: RelativeRect.fromSize(
-                    Rect.fromLTWH(biggest.width - bigLogo,
-                        biggest.height - bigLogo, bigLogo, bigLogo),
-                    biggest),
+                  Rect.fromLTWH(biggest.width - bigLogo, biggest.height - bigLogo, bigLogo, bigLogo),
+                  biggest,
+                ),
               ).animate(CurvedAnimation(
                 parent: _controller,
                 curve: Curves.elasticInOut,
               )),
               child: const Padding(
-                  padding: EdgeInsets.all(8), child: FlutterLogo()),
+                padding: EdgeInsets.all(8),
+                child: FlutterLogo(),
+              ),
             ),
           ],
         );
diff --git a/examples/api/lib/widgets/transitions/relative_positioned_transition.0.dart b/examples/api/lib/widgets/transitions/relative_positioned_transition.0.dart
index aad99c7..3b5f57c 100644
--- a/examples/api/lib/widgets/transitions/relative_positioned_transition.0.dart
+++ b/examples/api/lib/widgets/transitions/relative_positioned_transition.0.dart
@@ -2,36 +2,33 @@
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
-// Flutter code sample for [RelativePositionedTransition].
-
 import 'package:flutter/material.dart';
 
-void main() => runApp(const MyApp());
+/// Flutter code sample for [RelativePositionedTransition].
 
-class MyApp extends StatelessWidget {
-  const MyApp({super.key});
+void main() => runApp(const RelativePositionedTransitionExampleApp());
 
-  static const String _title = 'Flutter Code Sample';
+class RelativePositionedTransitionExampleApp extends StatelessWidget {
+  const RelativePositionedTransitionExampleApp({super.key});
 
   @override
   Widget build(BuildContext context) {
     return const MaterialApp(
-      title: _title,
-      home: MyStatefulWidget(),
+      home: RelativePositionedTransitionExample(),
     );
   }
 }
 
-class MyStatefulWidget extends StatefulWidget {
-  const MyStatefulWidget({super.key});
+class RelativePositionedTransitionExample extends StatefulWidget {
+  const RelativePositionedTransitionExample({super.key});
 
   @override
-  State<MyStatefulWidget> createState() => _MyStatefulWidgetState();
+  State<RelativePositionedTransitionExample> createState() => _RelativePositionedTransitionExampleState();
 }
 
 /// [AnimationController]s can be created with `vsync: this` because of
 /// [TickerProviderStateMixin].
-class _MyStatefulWidgetState extends State<MyStatefulWidget>
+class _RelativePositionedTransitionExampleState extends State<RelativePositionedTransitionExample>
     with TickerProviderStateMixin {
   late final AnimationController _controller = AnimationController(
     duration: const Duration(seconds: 2),
@@ -58,14 +55,20 @@
               size: biggest,
               rect: RectTween(
                 begin: const Rect.fromLTWH(0, 0, bigLogo, bigLogo),
-                end: Rect.fromLTWH(biggest.width - smallLogo,
-                    biggest.height - smallLogo, smallLogo, smallLogo),
+                end: Rect.fromLTWH(
+                  biggest.width - smallLogo,
+                  biggest.height - smallLogo,
+                  smallLogo,
+                  smallLogo,
+                ),
               ).animate(CurvedAnimation(
                 parent: _controller,
                 curve: Curves.elasticInOut,
               )),
               child: const Padding(
-                  padding: EdgeInsets.all(8), child: FlutterLogo()),
+                padding: EdgeInsets.all(8),
+                child: FlutterLogo(),
+              ),
             ),
           ],
         );
diff --git a/examples/api/lib/widgets/transitions/rotation_transition.0.dart b/examples/api/lib/widgets/transitions/rotation_transition.0.dart
index aa554b4..58001da 100644
--- a/examples/api/lib/widgets/transitions/rotation_transition.0.dart
+++ b/examples/api/lib/widgets/transitions/rotation_transition.0.dart
@@ -2,37 +2,33 @@
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
-// Flutter code sample for [RotationTransition].
-
 import 'package:flutter/material.dart';
 
-void main() => runApp(const MyApp());
+/// Flutter code sample for [RotationTransition].
 
-class MyApp extends StatelessWidget {
-  const MyApp({super.key});
+void main() => runApp(const RotationTransitionExampleApp());
 
-  static const String _title = 'Flutter Code Sample';
+class RotationTransitionExampleApp extends StatelessWidget {
+  const RotationTransitionExampleApp({super.key});
 
   @override
   Widget build(BuildContext context) {
     return const MaterialApp(
-      title: _title,
-      home: MyStatefulWidget(),
+      home: RotationTransitionExample(),
     );
   }
 }
 
-class MyStatefulWidget extends StatefulWidget {
-  const MyStatefulWidget({super.key});
+class RotationTransitionExample extends StatefulWidget {
+  const RotationTransitionExample({super.key});
 
   @override
-  State<MyStatefulWidget> createState() => _MyStatefulWidgetState();
+  State<RotationTransitionExample> createState() => _RotationTransitionExampleState();
 }
 
 /// [AnimationController]s can be created with `vsync: this` because of
 /// [TickerProviderStateMixin].
-class _MyStatefulWidgetState extends State<MyStatefulWidget>
-    with TickerProviderStateMixin {
+class _RotationTransitionExampleState extends State<RotationTransitionExample> with TickerProviderStateMixin {
   late final AnimationController _controller = AnimationController(
     duration: const Duration(seconds: 2),
     vsync: this,
diff --git a/examples/api/lib/widgets/transitions/scale_transition.0.dart b/examples/api/lib/widgets/transitions/scale_transition.0.dart
index d1eeed8..34b3527 100644
--- a/examples/api/lib/widgets/transitions/scale_transition.0.dart
+++ b/examples/api/lib/widgets/transitions/scale_transition.0.dart
@@ -2,37 +2,33 @@
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
-// Flutter code sample for [ScaleTransition].
-
 import 'package:flutter/material.dart';
 
-void main() => runApp(const MyApp());
+/// Flutter code sample for [ScaleTransition].
 
-class MyApp extends StatelessWidget {
-  const MyApp({super.key});
+void main() => runApp(const ScaleTransitionExampleApp());
 
-  static const String _title = 'Flutter Code Sample';
+class ScaleTransitionExampleApp extends StatelessWidget {
+  const ScaleTransitionExampleApp({super.key});
 
   @override
   Widget build(BuildContext context) {
     return const MaterialApp(
-      title: _title,
-      home: MyStatefulWidget(),
+      home: ScaleTransitionExample(),
     );
   }
 }
 
-class MyStatefulWidget extends StatefulWidget {
-  const MyStatefulWidget({super.key});
+class ScaleTransitionExample extends StatefulWidget {
+  const ScaleTransitionExample({super.key});
 
   @override
-  State<MyStatefulWidget> createState() => _MyStatefulWidgetState();
+  State<ScaleTransitionExample> createState() => _ScaleTransitionExampleState();
 }
 
 /// [AnimationController]s can be created with `vsync: this` because of
 /// [TickerProviderStateMixin].
-class _MyStatefulWidgetState extends State<MyStatefulWidget>
-    with TickerProviderStateMixin {
+class _ScaleTransitionExampleState extends State<ScaleTransitionExample> with TickerProviderStateMixin {
   late final AnimationController _controller = AnimationController(
     duration: const Duration(seconds: 2),
     vsync: this,
diff --git a/examples/api/lib/widgets/transitions/size_transition.0.dart b/examples/api/lib/widgets/transitions/size_transition.0.dart
index 5358f36..cfd9525 100644
--- a/examples/api/lib/widgets/transitions/size_transition.0.dart
+++ b/examples/api/lib/widgets/transitions/size_transition.0.dart
@@ -2,37 +2,33 @@
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
-// Flutter code sample for [SizeTransition].
-
 import 'package:flutter/material.dart';
 
-void main() => runApp(const MyApp());
+/// Flutter code sample for [SizeTransition].
 
-class MyApp extends StatelessWidget {
-  const MyApp({super.key});
+void main() => runApp(const SizeTransitionExampleApp());
 
-  static const String _title = 'Flutter Code Sample';
+class SizeTransitionExampleApp extends StatelessWidget {
+  const SizeTransitionExampleApp({super.key});
 
   @override
   Widget build(BuildContext context) {
     return const MaterialApp(
-      title: _title,
-      home: MyStatefulWidget(),
+      home: SizeTransitionExample(),
     );
   }
 }
 
-class MyStatefulWidget extends StatefulWidget {
-  const MyStatefulWidget({super.key});
+class SizeTransitionExample extends StatefulWidget {
+  const SizeTransitionExample({super.key});
 
   @override
-  State<MyStatefulWidget> createState() => _MyStatefulWidgetState();
+  State<SizeTransitionExample> createState() => _SizeTransitionExampleState();
 }
 
 /// [AnimationController]s can be created with `vsync: this` because of
 /// [TickerProviderStateMixin].
-class _MyStatefulWidgetState extends State<MyStatefulWidget>
-    with TickerProviderStateMixin {
+class _SizeTransitionExampleState extends State<SizeTransitionExample> with TickerProviderStateMixin {
   late final AnimationController _controller = AnimationController(
     duration: const Duration(seconds: 3),
     vsync: this,
diff --git a/examples/api/lib/widgets/transitions/slide_transition.0.dart b/examples/api/lib/widgets/transitions/slide_transition.0.dart
index 767b969..861dc7f 100644
--- a/examples/api/lib/widgets/transitions/slide_transition.0.dart
+++ b/examples/api/lib/widgets/transitions/slide_transition.0.dart
@@ -2,40 +2,36 @@
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
-// Flutter code sample for [SlideTransition].
-
 import 'package:flutter/material.dart';
 
-void main() => runApp(const MyApp());
+/// Flutter code sample for [SlideTransition].
 
-class MyApp extends StatelessWidget {
-  const MyApp({super.key});
+void main() => runApp(const SlideTransitionExampleApp());
 
-  static const String _title = 'Flutter Code Sample';
+class SlideTransitionExampleApp extends StatelessWidget {
+  const SlideTransitionExampleApp({super.key});
 
   @override
   Widget build(BuildContext context) {
     return MaterialApp(
-      title: _title,
       home: Scaffold(
-        appBar: AppBar(title: const Text(_title)),
+        appBar: AppBar(title: const Text('SlideTransition Sample')),
         body: const Center(
-          child: MyStatefulWidget(),
+          child: SlideTransitionExample(),
         ),
       ),
     );
   }
 }
 
-class MyStatefulWidget extends StatefulWidget {
-  const MyStatefulWidget({super.key});
+class SlideTransitionExample extends StatefulWidget {
+  const SlideTransitionExample({super.key});
 
   @override
-  State<MyStatefulWidget> createState() => _MyStatefulWidgetState();
+  State<SlideTransitionExample> createState() => _SlideTransitionExampleState();
 }
 
-class _MyStatefulWidgetState extends State<MyStatefulWidget>
-    with SingleTickerProviderStateMixin {
+class _SlideTransitionExampleState extends State<SlideTransitionExample> with SingleTickerProviderStateMixin {
   late final AnimationController _controller = AnimationController(
     duration: const Duration(seconds: 2),
     vsync: this,
diff --git a/examples/api/lib/widgets/transitions/sliver_fade_transition.0.dart b/examples/api/lib/widgets/transitions/sliver_fade_transition.0.dart
index b7db200..bdd364b 100644
--- a/examples/api/lib/widgets/transitions/sliver_fade_transition.0.dart
+++ b/examples/api/lib/widgets/transitions/sliver_fade_transition.0.dart
@@ -2,40 +2,36 @@
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
-// Flutter code sample for [SliverFadeTransition].
-
 import 'package:flutter/material.dart';
 
-void main() => runApp(const MyApp());
+/// Flutter code sample for [SliverFadeTransition].
 
-class MyApp extends StatelessWidget {
-  const MyApp({super.key});
+void main() => runApp(const SliverFadeTransitionExampleApp());
 
-  static const String _title = 'Flutter Code Sample';
+class SliverFadeTransitionExampleApp extends StatelessWidget {
+  const SliverFadeTransitionExampleApp({super.key});
 
   @override
   Widget build(BuildContext context) {
     return MaterialApp(
-      title: _title,
       home: Scaffold(
-        appBar: AppBar(title: const Text(_title)),
+        appBar: AppBar(title: const Text('SliverFadeTransition Sample')),
         body: const Center(
-          child: MyStatefulWidget(),
+          child: SliverFadeTransitionExample(),
         ),
       ),
     );
   }
 }
 
-class MyStatefulWidget extends StatefulWidget {
-  const MyStatefulWidget({super.key});
+class SliverFadeTransitionExample extends StatefulWidget {
+  const SliverFadeTransitionExample({super.key});
 
   @override
-  State<MyStatefulWidget> createState() => _MyStatefulWidgetState();
+  State<SliverFadeTransitionExample> createState() => _SliverFadeTransitionExampleState();
 }
 
-class _MyStatefulWidgetState extends State<MyStatefulWidget>
-    with SingleTickerProviderStateMixin {
+class _SliverFadeTransitionExampleState extends State<SliverFadeTransitionExample> with SingleTickerProviderStateMixin {
   late final AnimationController controller = AnimationController(
     duration: const Duration(milliseconds: 1000),
     vsync: this,
diff --git a/examples/api/lib/widgets/tween_animation_builder/tween_animation_builder.0.dart b/examples/api/lib/widgets/tween_animation_builder/tween_animation_builder.0.dart
index b8b4877..65d9587 100644
--- a/examples/api/lib/widgets/tween_animation_builder/tween_animation_builder.0.dart
+++ b/examples/api/lib/widgets/tween_animation_builder/tween_animation_builder.0.dart
@@ -2,39 +2,36 @@
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
-// Flutter code sample for [TweenAnimationBuilder].
-
 import 'package:flutter/material.dart';
 
-void main() => runApp(const MyApp());
+/// Flutter code sample for [TweenAnimationBuilder].
 
-class MyApp extends StatelessWidget {
-  const MyApp({super.key});
+void main() => runApp(const TweenAnimationBuilderExampleApp());
 
-  static const String _title = 'Flutter Code Sample';
+class TweenAnimationBuilderExampleApp extends StatelessWidget {
+  const TweenAnimationBuilderExampleApp({super.key});
 
   @override
   Widget build(BuildContext context) {
     return MaterialApp(
-      title: _title,
       home: Scaffold(
-        appBar: AppBar(title: const Text(_title)),
+        appBar: AppBar(title: const Text('TweenAnimationBuilder Sample')),
         body: const Center(
-          child: MyStatefulWidget(),
+          child: TweenAnimationBuilderExample(),
         ),
       ),
     );
   }
 }
 
-class MyStatefulWidget extends StatefulWidget {
-  const MyStatefulWidget({super.key});
+class TweenAnimationBuilderExample extends StatefulWidget {
+  const TweenAnimationBuilderExample({super.key});
 
   @override
-  State<MyStatefulWidget> createState() => _MyStatefulWidgetState();
+  State<TweenAnimationBuilderExample> createState() => _TweenAnimationBuilderExampleState();
 }
 
-class _MyStatefulWidgetState extends State<MyStatefulWidget> {
+class _TweenAnimationBuilderExampleState extends State<TweenAnimationBuilderExample> {
   double targetValue = 24.0;
 
   @override
diff --git a/examples/api/lib/widgets/undo_history/undo_history_controller.0.dart b/examples/api/lib/widgets/undo_history/undo_history_controller.0.dart
index 55cd50d..33a0dfe 100644
--- a/examples/api/lib/widgets/undo_history/undo_history_controller.0.dart
+++ b/examples/api/lib/widgets/undo_history/undo_history_controller.0.dart
@@ -2,23 +2,20 @@
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
-// Flutter code sample for UndoHistoryController.
-
 import 'package:flutter/material.dart';
 
+/// Flutter code sample for [UndoHistoryController].
+
 void main() {
-  runApp(const MyApp());
+  runApp(const UndoHistoryControllerExampleApp());
 }
 
-class MyApp extends StatelessWidget {
-  const MyApp({super.key});
-
-  static const String _title = 'Flutter Code Sample';
+class UndoHistoryControllerExampleApp extends StatelessWidget {
+  const UndoHistoryControllerExampleApp({super.key});
 
   @override
   Widget build(BuildContext context) {
     return const MaterialApp(
-      title: _title,
       home: MyHomePage(),
     );
   }
diff --git a/examples/api/lib/widgets/will_pop_scope/will_pop_scope.0.dart b/examples/api/lib/widgets/will_pop_scope/will_pop_scope.0.dart
index 74efd94..46dafa5 100644
--- a/examples/api/lib/widgets/will_pop_scope/will_pop_scope.0.dart
+++ b/examples/api/lib/widgets/will_pop_scope/will_pop_scope.0.dart
@@ -2,34 +2,31 @@
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
-// Flutter code sample for [WillPopScope].
-
 import 'package:flutter/material.dart';
 
-void main() => runApp(const MyApp());
+/// Flutter code sample for [WillPopScope].
 
-class MyApp extends StatelessWidget {
-  const MyApp({super.key});
+void main() => runApp(const WillPopScopeExampleApp());
 
-  static const String _title = 'Flutter Code Sample';
+class WillPopScopeExampleApp extends StatelessWidget {
+  const WillPopScopeExampleApp({super.key});
 
   @override
   Widget build(BuildContext context) {
     return const MaterialApp(
-      title: _title,
-      home: MyStatefulWidget(),
+      home: WillPopScopeExample(),
     );
   }
 }
 
-class MyStatefulWidget extends StatefulWidget {
-  const MyStatefulWidget({super.key});
+class WillPopScopeExample extends StatefulWidget {
+  const WillPopScopeExample({super.key});
 
   @override
-  State<MyStatefulWidget> createState() => _MyStatefulWidgetState();
+  State<WillPopScopeExample> createState() => _WillPopScopeExampleState();
 }
 
-class _MyStatefulWidgetState extends State<MyStatefulWidget> {
+class _WillPopScopeExampleState extends State<WillPopScopeExample> {
   bool shouldPop = true;
   @override
   Widget build(BuildContext context) {
@@ -51,7 +48,7 @@
                   Navigator.of(context).push<void>(
                     MaterialPageRoute<void>(
                       builder: (BuildContext context) {
-                        return const MyStatefulWidget();
+                        return const WillPopScopeExample();
                       },
                     ),
                   );