Fixed typos (#159331)

Here's another one of my PRs where I hunt for typos across `flutter`
repo.

## Pre-launch Checklist

- [x] I read the [Contributor Guide] and followed the process outlined
there for submitting PRs.
- [x] I read the [Tree Hygiene] wiki page, which explains my
responsibilities.
- [x] I read and followed the [Flutter Style Guide], including [Features
we expect every widget to implement].
- [x] I signed the [CLA].
- [ ] I listed at least one issue that this PR fixes in the description
above.
- [ ] I updated/added relevant documentation (doc comments with `///`).
- [ ] I added new tests to check the change I am making, or this PR is
[test-exempt].
- [x] All existing and new tests are passing.

<!-- Links -->
[Contributor Guide]:
https://github.com/flutter/flutter/wiki/Tree-hygiene#overview
[Tree Hygiene]: https://github.com/flutter/flutter/wiki/Tree-hygiene
[test-exempt]:
https://github.com/flutter/flutter/wiki/Tree-hygiene#tests
[Flutter Style Guide]:
https://github.com/flutter/flutter/wiki/Style-guide-for-Flutter-repo
[Features we expect every widget to implement]:
https://github.com/flutter/flutter/wiki/Style-guide-for-Flutter-repo#features-we-expect-every-widget-to-implement
[CLA]: https://cla.developers.google.com/
[flutter/tests]: https://github.com/flutter/tests
[breaking change policy]:
https://github.com/flutter/flutter/wiki/Tree-hygiene#handling-breaking-changes
[Discord]: https://github.com/flutter/flutter/wiki/Chat
This commit is contained in:
Anis Alibegić
2024-12-05 17:54:09 +01:00
committed by GitHub
parent c5132b52c2
commit e2ada1c939
59 changed files with 177 additions and 177 deletions

View File

@@ -53,7 +53,7 @@ class _SliverAutoScrollExampleState extends State<SliverAutoScrollExample> {
// After an interactive scroll ends, if the alignedItem is partially visible
// at the top or bottom of the viewport, then auto-scroll so that it's
// completely visible. To accomodate mouse-wheel scrolls and other small
// completely visible. To accommodate mouse-wheel scrolls and other small
// adjustments, scrolls that change the scroll offset by less than
// the alignedItem's extent don't trigger an auto-scroll.
void maybeAutoScrollAlignedItem(RenderSliver alignedItem) {

View File

@@ -56,7 +56,7 @@ class _IsScrollingListenerExampleState extends State<IsScrollingListenerExample>
}
// After an interactive scroll "ends", auto-scroll so that last item in the
// viewport is completely visible. To accomodate mouse-wheel scrolls, other small
// viewport is completely visible. To accommodate mouse-wheel scrolls, other small
// adjustments, and scrolling to the top, scrolls that put the scroll offset at
// zero or change the scroll offset by less than itemExtent don't trigger
// an auto-scroll.

View File

@@ -45,7 +45,7 @@ class _SettingsAppBarExampleState extends State<SettingsAppBarExample> {
// The key must be for a widget _below_ a RenderSliver so that
// findAncestorRenderObjectOfType can find the RenderSliver when it searches
// the key widget's renderer ancesotrs.
// the key widget's renderer ancestors.
RenderSliver? keyToSliver(GlobalKey key) => key.currentContext?.findAncestorRenderObjectOfType<RenderSliver>();
// Each time the app's list scrolls: if the Title sliver has scrolled completely behind

View File

@@ -15,7 +15,7 @@ void main() {
final double itemHeight = tester.getSize(find.widgetWithText(Card, 'Item 0.15')).height;
// The scroll view is 600 pixels high and the big orange
// "AlignedItem" is precedeed by 15 regular items. Scroll up enough
// "AlignedItem" is preceded by 15 regular items. Scroll up enough
// to make it partially visible.
await tester.drag(find.byType(CustomScrollView), Offset(0, 600 - 15.5 * itemHeight));
await tester.pumpAndSettle();

View File

@@ -55,7 +55,7 @@ void main() {
});
// Regression test for https://github.com/flutter/flutter/issues/156806.
testWidgets('SingleActivator is used instead of LogiccalKeySet', (WidgetTester tester) async {
testWidgets('SingleActivator is used instead of LogicalKeySet', (WidgetTester tester) async {
await tester.pumpWidget(
const example.ShortcutsExampleApp(),
);