Remove "note that" in our documentation (as per style guide) (#120842)
* lerp documentation * Remove Note, Note That from repo * Improve BorderSide documentation. * apply review comments
This commit is contained in:
@@ -164,7 +164,7 @@ class MyStatelessWidget extends StatelessWidget {
|
||||
),
|
||||
// A group that orders in widget order, regardless of what the order is set to.
|
||||
FocusTraversalGroup(
|
||||
// Note that because this is NOT an OrderedTraversalPolicy, the
|
||||
// Because this is NOT an OrderedTraversalPolicy, the
|
||||
// assigned order of these OrderedButtons is ignored, and they
|
||||
// are traversed in widget order. TRY THIS: change this to
|
||||
// "OrderedTraversalPolicy()" and see that it now follows the
|
||||
|
||||
@@ -52,7 +52,7 @@ class _HomeState extends State<Home> {
|
||||
_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'); // note: no setState()
|
||||
SharedAppData.setValue<String, String?>(context, 'foo', 'FOO $_fooVersion'); // no need to call setState()
|
||||
},
|
||||
),
|
||||
const SizedBox(height: 16),
|
||||
@@ -60,7 +60,7 @@ class _HomeState extends State<Home> {
|
||||
child: const Text('change bar'),
|
||||
onPressed: () {
|
||||
_barVersion += 1;
|
||||
SharedAppData.setValue<String, String?>(context, 'bar', 'BAR $_barVersion'); // note: no setState()
|
||||
SharedAppData.setValue<String, String?>(context, 'bar', 'BAR $_barVersion'); // no need to call setState()
|
||||
},
|
||||
),
|
||||
],
|
||||
|
||||
@@ -28,7 +28,7 @@ void main() {
|
||||
}
|
||||
|
||||
void expectInnerGestureDetectorBehavior(WidgetTester tester, HitTestBehavior behavior) {
|
||||
// Note that there is a third GestureDetector added by Scaffold
|
||||
// There is a third GestureDetector added by Scaffold.
|
||||
final Finder innerGestureDetectorFinder = find.byType(GestureDetector).at(1);
|
||||
final GestureDetector innerGestureDetector = tester.firstWidget<GestureDetector>(innerGestureDetectorFinder);
|
||||
expect(innerGestureDetector.behavior, behavior);
|
||||
|
||||
Reference in New Issue
Block a user