diff --git a/dev/integration_tests/channels/android/app/src/main/java/com/yourcompany/channels/MainActivity.java b/dev/integration_tests/channels/android/app/src/main/java/com/yourcompany/channels/MainActivity.java index 83fae61f45..2921ff5a38 100644 --- a/dev/integration_tests/channels/android/app/src/main/java/com/yourcompany/channels/MainActivity.java +++ b/dev/integration_tests/channels/android/app/src/main/java/com/yourcompany/channels/MainActivity.java @@ -44,7 +44,7 @@ public class MainActivity extends FlutterActivity { } // Outgoing ByteBuffer messages must be direct-allocated and payload placed between - // positon 0 and current position. + // position 0 and current position. @SuppressWarnings("unchecked") private T echo(T message) { if (message instanceof ByteBuffer) { diff --git a/dev/manual_tests/lib/text.dart b/dev/manual_tests/lib/text.dart index 64effdc274..92212d84ed 100644 --- a/dev/manual_tests/lib/text.dart +++ b/dev/manual_tests/lib/text.dart @@ -124,7 +124,7 @@ class _FuzzerState extends State with SingleTickerProviderStateMixin { @override void initState() { super.initState(); - _random = new math.Random(widget.seed); // providing a seed is important for reproducability + _random = new math.Random(widget.seed); // providing a seed is important for reproducibility _ticker = createTicker(_updateTextSpan)..start(); _updateTextSpan(null); } @@ -798,7 +798,7 @@ class _ZalgoState extends State with SingleTickerProviderStateMixin { @override void initState() { super.initState(); - _random = new math.Random(widget.seed); // providing a seed is important for reproducability + _random = new math.Random(widget.seed); // providing a seed is important for reproducibility _ticker = createTicker(_update)..start(); _update(null); } @@ -865,7 +865,7 @@ class _ZalgoState extends State with SingleTickerProviderStateMixin { onChanged: (bool value) { setState(() { _allowSpacing = value; - _random = new math.Random(widget.seed); // reset for reproducability + _random = new math.Random(widget.seed); // reset for reproducibility }); }, ), @@ -875,7 +875,7 @@ class _ZalgoState extends State with SingleTickerProviderStateMixin { onChanged: (bool value) { setState(() { _varyBase = value; - _random = new math.Random(widget.seed); // reset for reproducability + _random = new math.Random(widget.seed); // reset for reproducibility }); }, ), @@ -905,7 +905,7 @@ class _PaintingState extends State with SingleTickerProviderStateMixin @override void initState() { super.initState(); - _random = new math.Random(widget.seed); // providing a seed is important for reproducability + _random = new math.Random(widget.seed); // providing a seed is important for reproducibility _ticker = createTicker(_update)..start(); _update(null); } @@ -1027,7 +1027,7 @@ class _PaintingState extends State with SingleTickerProviderStateMixin onChanged: (bool value) { setState(() { _ellipsize = value; - _random = new math.Random(widget.seed); // reset for reproducability + _random = new math.Random(widget.seed); // reset for reproducibility if (!_ticker.isActive) _update(null); }); diff --git a/dev/missing_dependency_tests/trivial_test.dart b/dev/missing_dependency_tests/trivial_test.dart index b7826d81a0..798a1e5413 100644 --- a/dev/missing_dependency_tests/trivial_test.dart +++ b/dev/missing_dependency_tests/trivial_test.dart @@ -5,7 +5,7 @@ import 'package:test/test.dart'; void main() { - test('Trival test', () { + test('Trivial test', () { expect(42, 42); }); } diff --git a/dev/tools/dartdoc.dart b/dev/tools/dartdoc.dart index d7bec53de4..79387b91c6 100644 --- a/dev/tools/dartdoc.dart +++ b/dev/tools/dartdoc.dart @@ -129,7 +129,7 @@ Future main(List arguments) async { '--exclude-packages', 'analyzer,args,barback,cli_util,csslib,front_end,glob,html,http_multi_server,io,isolate,js,kernel,logging,mime,mockito,node_preamble,plugin,shelf,shelf_packages_handler,shelf_static,shelf_web_socket,utf,watcher,yaml', '--exclude', - 'package:Flutter/temp_doc.dart,package:http/browser_client.dart,package:intl/intl_browser.dart,package:matcher/mirror_matchers.dart,package:quiver/mirrors.dart,pacakge:quiver/io.dart,package:vm_service_client/vm_service_client.dart,package:web_socket_channel/html.dart', + 'package:Flutter/temp_doc.dart,package:http/browser_client.dart,package:intl/intl_browser.dart,package:matcher/mirror_matchers.dart,package:quiver/mirrors.dart,package:quiver/io.dart,package:vm_service_client/vm_service_client.dart,package:web_socket_channel/html.dart', '--favicon=favicon.ico', '--use-categories', '--category-order', 'flutter,Dart Core,flutter_test,flutter_driver', diff --git a/dev/tools/lib/roll_dev.dart b/dev/tools/lib/roll_dev.dart index b1e47fe01e..5196112fea 100644 --- a/dev/tools/lib/roll_dev.dart +++ b/dev/tools/lib/roll_dev.dart @@ -192,7 +192,7 @@ ProcessResult _runGit(String command) { void _reportGitFailureAndExit(ProcessResult result, String explanation) { if (result.exitCode != 0) { - print('Failed to $explanation. Git exitted with error code ${result.exitCode}.'); + print('Failed to $explanation. Git exited with error code ${result.exitCode}.'); } else { print('Failed to $explanation.'); } diff --git a/examples/catalog/lib/basic_app_bar.dart b/examples/catalog/lib/basic_app_bar.dart index e098c0d63e..d2e5d3adb7 100644 --- a/examples/catalog/lib/basic_app_bar.dart +++ b/examples/catalog/lib/basic_app_bar.dart @@ -109,7 +109,7 @@ Summary: A basic AppBar with a title, actions, and an overflow dropdown menu. Description: An app that displays one of a half dozen choices with an icon and a title. The two most common choices are available as action buttons and the remaining -choices are included in the overflow dropdow menu. +choices are included in the overflow dropdown menu. Classes: AppBar, IconButton, PopupMenuButton, Scaffold diff --git a/examples/catalog/test/app_bar_bottom_test.dart b/examples/catalog/test/app_bar_bottom_test.dart index 4ebffd9869..857bbee958 100644 --- a/examples/catalog/test/app_bar_bottom_test.dart +++ b/examples/catalog/test/app_bar_bottom_test.dart @@ -19,7 +19,7 @@ void main() { app_bar_bottom_sample.main(); await tester.pump(); - // Cycle throught the choices using the forward and backwards arrows. + // Cycle through the choices using the forward and backwards arrows. final Finder nextChoice = find.byTooltip('Next choice'); for (int i = 0; i < choiceCount; i += 1) { diff --git a/examples/flutter_gallery/ios/Podfile b/examples/flutter_gallery/ios/Podfile index 0bdc701315..21aa3c965f 100644 --- a/examples/flutter_gallery/ios/Podfile +++ b/examples/flutter_gallery/ios/Podfile @@ -4,7 +4,7 @@ # CocoaPods analytics sends network stats synchronously affecting flutter build latency. ENV['COCOAPODS_DISABLE_STATS'] = 'true' -def parse_KV_file(file,seperator='=') +def parse_KV_file(file,separator='=') file_abs_path = File.expand_path(file) if !File.exists? file_abs_path return []; @@ -13,7 +13,7 @@ def parse_KV_file(file,seperator='=') skip_line_start_symbols = ["#", "/"] File.foreach(file_abs_path) { |line| next if skip_line_start_symbols.any? { |symbol| line =~ /^\s*#{symbol}/ } - plugin = line.split(pattern=seperator) + plugin = line.split(pattern=separator) if plugin.length == 2 podname = plugin[0].strip() path = plugin[1].strip() diff --git a/examples/flutter_gallery/lib/demo/calculator/logic.dart b/examples/flutter_gallery/lib/demo/calculator/logic.dart index 7e3f0facdb..266f12fee7 100644 --- a/examples/flutter_gallery/lib/demo/calculator/logic.dart +++ b/examples/flutter_gallery/lib/demo/calculator/logic.dart @@ -284,7 +284,7 @@ class CalcExpression { final List list = _list.toList(); // We obey order-of-operations by computing the sum of the 'terms', // where a "term" is defined to be a sequence of numbers separated by - // multiplcation or division symbols. + // multiplication or division symbols. num currentTermValue = removeNextTerm(list); while (list.isNotEmpty) { final OperationToken opToken = list.removeAt(0); diff --git a/examples/flutter_gallery/lib/demo/cupertino/cupertino_navigation_demo.dart b/examples/flutter_gallery/lib/demo/cupertino/cupertino_navigation_demo.dart index cac8020765..20a74f49b9 100644 --- a/examples/flutter_gallery/lib/demo/cupertino/cupertino_navigation_demo.dart +++ b/examples/flutter_gallery/lib/demo/cupertino/cupertino_navigation_demo.dart @@ -24,7 +24,7 @@ const List coolColors = const [ const List coolColorNames = const [ 'Sarcoline', 'Coquelicot', 'Smaragdine', 'Mikado', 'Glaucous', 'Wenge', 'Fulvous', 'Xanadu', 'Falu', 'Eburnean', 'Amaranth', 'Australien', - 'Banan', 'Falu', 'Gingerline', 'Incarnadine', 'Labrabor', 'Nattier', + 'Banan', 'Falu', 'Gingerline', 'Incarnadine', 'Labrador', 'Nattier', 'Pervenche', 'Sinoper', 'Verditer', 'Watchet', 'Zaffre', ]; @@ -678,7 +678,7 @@ List buildTab2Conversation() { text: 'SJ', color: const Color(0xFF34CAD6), ), - text: "We'll send you our\nnewest Labrabor too!", + text: "We'll send you our\nnewest Labrador too!", ), const Tab2ConversationRow( text: 'Yay', diff --git a/examples/flutter_gallery/lib/demo/material/cards_demo.dart b/examples/flutter_gallery/lib/demo/material/cards_demo.dart index 34218d13a1..831d1fa2dd 100644 --- a/examples/flutter_gallery/lib/demo/material/cards_demo.dart +++ b/examples/flutter_gallery/lib/demo/material/cards_demo.dart @@ -97,7 +97,7 @@ class TravelDestinationItem extends StatelessWidget { ], ), ), - // description and share/expore buttons + // description and share/explore buttons new Expanded( child: new Padding( padding: const EdgeInsets.fromLTRB(16.0, 16.0, 16.0, 0.0), diff --git a/examples/flutter_gallery/lib/demo/material/dialog_demo.dart b/examples/flutter_gallery/lib/demo/material/dialog_demo.dart index e0331ba6b9..2908a3926b 100644 --- a/examples/flutter_gallery/lib/demo/material/dialog_demo.dart +++ b/examples/flutter_gallery/lib/demo/material/dialog_demo.dart @@ -16,7 +16,7 @@ enum DialogDemoAction { const String _alertWithoutTitleText = 'Discard draft?'; const String _alertWithTitleText = - 'Let Google help apps determine location. This means sending anyonmous location ' + 'Let Google help apps determine location. This means sending anonymous location ' 'data to Google, even when no apps are running.'; class DialogDemoItem extends StatelessWidget { diff --git a/examples/flutter_gallery/lib/demo/material/expansion_panels_demo.dart b/examples/flutter_gallery/lib/demo/material/expansion_panels_demo.dart index ade4beb84c..7e70319ec2 100644 --- a/examples/flutter_gallery/lib/demo/material/expansion_panels_demo.dart +++ b/examples/flutter_gallery/lib/demo/material/expansion_panels_demo.dart @@ -172,14 +172,14 @@ class DemoItem { Widget build() => builder(this); } -class ExpasionPanelsDemo extends StatefulWidget { +class ExpansionPanelsDemo extends StatefulWidget { static const String routeName = '/material/expansion_panels'; @override _ExpansionPanelsDemoState createState() => new _ExpansionPanelsDemoState(); } -class _ExpansionPanelsDemoState extends State { +class _ExpansionPanelsDemoState extends State { List> _demoItems; @override diff --git a/examples/flutter_gallery/lib/demo/material/leave_behind_demo.dart b/examples/flutter_gallery/lib/demo/material/leave_behind_demo.dart index 5b191694e5..313dac2119 100644 --- a/examples/flutter_gallery/lib/demo/material/leave_behind_demo.dart +++ b/examples/flutter_gallery/lib/demo/material/leave_behind_demo.dart @@ -147,7 +147,7 @@ class LeaveBehindDemoState extends State { new CheckedPopupMenuItem( value: LeaveBehindDemoAction.horizontalSwipe, checked: _dismissDirection == DismissDirection.horizontal, - child: const Text('Hoizontal swipe') + child: const Text('Horizontal swipe') ), new CheckedPopupMenuItem( value: LeaveBehindDemoAction.leftSwipe, diff --git a/examples/flutter_gallery/lib/demo/shrine/shrine_data.dart b/examples/flutter_gallery/lib/demo/shrine/shrine_data.dart index 46e2758d1f..8da116de87 100644 --- a/examples/flutter_gallery/lib/demo/shrine/shrine_data.dart +++ b/examples/flutter_gallery/lib/demo/shrine/shrine_data.dart @@ -279,7 +279,7 @@ const List _allProducts = const [ vendor: _stella, description: 'Who says you can’t walk on water? With Surfboard, by Surfboard Supply, ' - 'you can fly on water. This beast is fast and handles like a porsche. ' + 'you can fly on water. This beast is fast and handles like a Porsche. ' 'Hang Ten Bro!' ) ]; diff --git a/examples/flutter_gallery/lib/gallery/item.dart b/examples/flutter_gallery/lib/gallery/item.dart index 9f39a8049a..18bdea73c0 100644 --- a/examples/flutter_gallery/lib/gallery/item.dart +++ b/examples/flutter_gallery/lib/gallery/item.dart @@ -148,8 +148,8 @@ List _buildGalleryItems() { title: 'Expansion panels', subtitle: 'List of expanding panels', category: 'Material Components', - routeName: ExpasionPanelsDemo.routeName, - buildRoute: (BuildContext context) => new ExpasionPanelsDemo(), + routeName: ExpansionPanelsDemo.routeName, + buildRoute: (BuildContext context) => new ExpansionPanelsDemo(), ), new GalleryItem( title: 'Floating action button', diff --git a/examples/flutter_gallery/test_driver/scroll_perf_test.dart b/examples/flutter_gallery/test_driver/scroll_perf_test.dart index 4208573364..67c05bee2a 100644 --- a/examples/flutter_gallery/test_driver/scroll_perf_test.dart +++ b/examples/flutter_gallery/test_driver/scroll_perf_test.dart @@ -30,7 +30,7 @@ void main() { await driver.tap(find.text('Components')); await driver.tap(find.text('Style')); - // TODO(eseidel): These are very artifical scrolls, we should use better + // TODO(eseidel): These are very artificial scrolls, we should use better // https://github.com/flutter/flutter/issues/3316 // Scroll down for (int i = 0; i < 5; i++) { diff --git a/examples/flutter_view/ios/Runner/Base.lproj/Main.storyboard b/examples/flutter_view/ios/Runner/Base.lproj/Main.storyboard index 47077deb74..380dd1496e 100644 --- a/examples/flutter_view/ios/Runner/Base.lproj/Main.storyboard +++ b/examples/flutter_view/ios/Runner/Base.lproj/Main.storyboard @@ -90,7 +90,7 @@ -