Unverified Commit 0bc43682 authored by Pierre-Louis's avatar Pierre-Louis Committed by GitHub

Typo sweep (#60693)

parent ec3368ae
...@@ -146,7 +146,7 @@ class CategoryView extends StatelessWidget { ...@@ -146,7 +146,7 @@ class CategoryView extends StatelessWidget {
} }
// One BackdropPanel is visible at a time. It's stacked on top of the // One BackdropPanel is visible at a time. It's stacked on top of the
// the BackdropDemo. // BackdropDemo.
class BackdropPanel extends StatelessWidget { class BackdropPanel extends StatelessWidget {
const BackdropPanel({ const BackdropPanel({
Key key, Key key,
......
...@@ -22,7 +22,7 @@ void main() { ...@@ -22,7 +22,7 @@ void main() {
final Finder passwordField = find.widgetWithText(TextFormField, 'Password *'); final Finder passwordField = find.widgetWithText(TextFormField, 'Password *');
expect(passwordField, findsOneWidget); expect(passwordField, findsOneWidget);
// Verify the that the phone number's TextInputFormatter does what's expected. // Verify that the phone number's TextInputFormatter does what's expected.
await tester.enterText(phoneNumberField, '1234567890'); await tester.enterText(phoneNumberField, '1234567890');
await tester.pumpAndSettle(); await tester.pumpAndSettle();
expect(find.text('(123) 456-7890'), findsOneWidget); expect(find.text('(123) 456-7890'), findsOneWidget);
......
...@@ -166,7 +166,7 @@ class NavigationRail extends StatefulWidget { ...@@ -166,7 +166,7 @@ class NavigationRail extends StatefulWidget {
/// ///
/// The extended state has a wider rail container, and the labels are /// The extended state has a wider rail container, and the labels are
/// positioned next to the icons. [minExtendedWidth] can be used to set the /// positioned next to the icons. [minExtendedWidth] can be used to set the
/// the minimum width of the rail when it is in this state. /// minimum width of the rail when it is in this state.
/// ///
/// The rail will implicitly animate between the extended and normal state. /// The rail will implicitly animate between the extended and normal state.
/// ///
......
...@@ -1034,9 +1034,8 @@ class Scaffold extends StatefulWidget { ...@@ -1034,9 +1034,8 @@ class Scaffold extends StatefulWidget {
/// instead of only extending to the top of the [bottomNavigationBar] /// instead of only extending to the top of the [bottomNavigationBar]
/// or the [persistentFooterButtons]. /// or the [persistentFooterButtons].
/// ///
/// If true, a [MediaQuery] widget whose bottom padding matches the /// If true, a [MediaQuery] widget whose bottom padding matches the height
/// the height of the [bottomNavigationBar] will be added above the /// of the [bottomNavigationBar] will be added above the scaffold's [body].
/// scaffold's [body].
/// ///
/// This property is often useful when the [bottomNavigationBar] has /// This property is often useful when the [bottomNavigationBar] has
/// a non-rectangular shape, like [CircularNotchedRectangle], which /// a non-rectangular shape, like [CircularNotchedRectangle], which
......
...@@ -123,7 +123,7 @@ abstract class InheritedTheme extends InheritedWidget { ...@@ -123,7 +123,7 @@ abstract class InheritedTheme extends InheritedWidget {
final Type themeType = theme.runtimeType; final Type themeType = theme.runtimeType;
// Only remember the first theme of any type. This assumes // Only remember the first theme of any type. This assumes
// that inherited themes completely shadow ancestors of the // that inherited themes completely shadow ancestors of the
// the same type. // same type.
if (!themeTypes.contains(themeType)) { if (!themeTypes.contains(themeType)) {
themeTypes.add(themeType); themeTypes.add(themeType);
themes.add(theme); themes.add(theme);
......
...@@ -545,7 +545,7 @@ class NestedScrollViewState extends State<NestedScrollView> { ...@@ -545,7 +545,7 @@ class NestedScrollViewState extends State<NestedScrollView> {
/// See also: /// See also:
/// ///
/// * [outerController], which exposes the [ScrollController] used by the /// * [outerController], which exposes the [ScrollController] used by the
/// the sliver(s) contained in [NestedScrollView.headerSliverBuilder]. /// sliver(s) contained in [NestedScrollView.headerSliverBuilder].
ScrollController get innerController => _coordinator._innerController; ScrollController get innerController => _coordinator._innerController;
/// The [ScrollController] provided to the [ScrollView] in /// The [ScrollController] provided to the [ScrollView] in
......
...@@ -182,7 +182,7 @@ abstract class TransitionRoute<T> extends OverlayRoute<T> { ...@@ -182,7 +182,7 @@ abstract class TransitionRoute<T> extends OverlayRoute<T> {
break; break;
case AnimationStatus.dismissed: case AnimationStatus.dismissed:
// We might still be an active route if a subclass is controlling the // We might still be an active route if a subclass is controlling the
// the transition and hits the dismissed status. For example, the iOS // transition and hits the dismissed status. For example, the iOS
// back gesture drives this animation to the dismissed status before // back gesture drives this animation to the dismissed status before
// removing the route and disposing it. // removing the route and disposing it.
if (!isActive) { if (!isActive) {
......
...@@ -201,9 +201,9 @@ class _RenderSliverFractionalPadding extends RenderSliverEdgeInsetsPadding { ...@@ -201,9 +201,9 @@ class _RenderSliverFractionalPadding extends RenderSliverEdgeInsetsPadding {
/// account in deciding how to layout this sliver. /// account in deciding how to layout this sliver.
/// ///
/// [SliverFillRemaining] will size its [child] to fill the viewport in the /// [SliverFillRemaining] will size its [child] to fill the viewport in the
/// main axis if that space is larger than the child's extent, and the /// main axis if that space is larger than the child's extent, and the amount
/// the amount of space that has been scrolled beforehand has not exceeded the /// of space that has been scrolled beforehand has not exceeded the main axis
/// main axis extent of the viewport. /// extent of the viewport.
/// ///
/// {@tool dartpad --template=stateless_widget_scaffold} /// {@tool dartpad --template=stateless_widget_scaffold}
/// ///
......
...@@ -1680,7 +1680,7 @@ void main() { ...@@ -1680,7 +1680,7 @@ void main() {
await tester.pump(); await tester.pump();
// Plain collapsed selection at the edge of first word. In iOS 12, the // Plain collapsed selection at the edge of first word. In iOS 12, the
// the first tap after a double tap ends up putting the cursor at where // first tap after a double tap ends up putting the cursor at where
// you tapped instead of the edge like every other single tap. This is // you tapped instead of the edge like every other single tap. This is
// likely a bug in iOS 12 and not present in other versions. // likely a bug in iOS 12 and not present in other versions.
expect( expect(
......
...@@ -6497,7 +6497,7 @@ void main() { ...@@ -6497,7 +6497,7 @@ void main() {
await tester.pump(); await tester.pump();
// Plain collapsed selection at the edge of first word. In iOS 12, the // Plain collapsed selection at the edge of first word. In iOS 12, the
// the first tap after a double tap ends up putting the cursor at where // first tap after a double tap ends up putting the cursor at where
// you tapped instead of the edge like every other single tap. This is // you tapped instead of the edge like every other single tap. This is
// likely a bug in iOS 12 and not present in other versions. // likely a bug in iOS 12 and not present in other versions.
expect( expect(
......
...@@ -2695,7 +2695,7 @@ void main() { ...@@ -2695,7 +2695,7 @@ void main() {
await tester.pump(); await tester.pump();
// Plain collapsed selection at the edge of first word. In iOS 12, the // Plain collapsed selection at the edge of first word. In iOS 12, the
// the first tap after a double tap ends up putting the cursor at where // first tap after a double tap ends up putting the cursor at where
// you tapped instead of the edge like every other single tap. This is // you tapped instead of the edge like every other single tap. This is
// likely a bug in iOS 12 and not present in other versions. // likely a bug in iOS 12 and not present in other versions.
expect( expect(
...@@ -3493,7 +3493,7 @@ void main() { ...@@ -3493,7 +3493,7 @@ void main() {
expect( expect(
tester.getSize(find.byType(SelectableText)), tester.getSize(find.byType(SelectableText)),
// When the strut fontSize is larger than a provided TextStyle, the // When the strut fontSize is larger than a provided TextStyle, the
// the strut's height takes precedence. // strut's height takes precedence.
const Size(93.0, 54.0), const Size(93.0, 54.0),
); );
}, },
......
...@@ -478,7 +478,7 @@ abstract class TestWidgetsFlutterBinding extends BindingBase ...@@ -478,7 +478,7 @@ abstract class TestWidgetsFlutterBinding extends BindingBase
/// The current client of the onscreen keyboard. Callers must pump /// The current client of the onscreen keyboard. Callers must pump
/// an additional frame after setting this property to complete the /// an additional frame after setting this property to complete the
/// the focus change. /// focus change.
/// ///
/// Instead of setting this directly, consider using /// Instead of setting this directly, consider using
/// [WidgetTester.showKeyboard]. /// [WidgetTester.showKeyboard].
......
...@@ -503,7 +503,7 @@ self.addEventListener("fetch", (event) => { ...@@ -503,7 +503,7 @@ self.addEventListener("fetch", (event) => {
if (event.request.url == origin || event.request.url.startsWith(origin + '/#')) { if (event.request.url == origin || event.request.url.startsWith(origin + '/#')) {
key = '/'; key = '/';
} }
// If the URL is not the the RESOURCE list, skip the cache. // If the URL is not the RESOURCE list, skip the cache.
if (!RESOURCES[key]) { if (!RESOURCES[key]) {
return event.respondWith(fetch(event.request)); return event.respondWith(fetch(event.request));
} }
......
...@@ -164,7 +164,7 @@ class FuchsiaPM { ...@@ -164,7 +164,7 @@ class FuchsiaPM {
/// ///
/// [FuchsiaPackageServer] takes care of initializing the package repository, /// [FuchsiaPackageServer] takes care of initializing the package repository,
/// spinning up the package server, publishing packages, and shutting down the /// spinning up the package server, publishing packages, and shutting down the
/// the server. /// server.
/// ///
/// Example usage: /// Example usage:
/// var server = FuchsiaPackageServer( /// var server = FuchsiaPackageServer(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment