Skip to content

Commit

Permalink
Standardize capitalization of UI element text (#2736)
Browse files Browse the repository at this point in the history
  • Loading branch information
parlough committed Nov 30, 2023
1 parent 9268803 commit 43a4cb3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion pkgs/sketch_pad/lib/gists.dart
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ class GistLoader {
await client.get(Uri.parse('https://api.github.com/gists/$gistId'));

if (response.statusCode != 200) {
throw 'unable to load gist (${response.statusCode} ${response.reasonPhrase}})';
throw Exception('Unable to load gist '
'(${response.statusCode} ${response.reasonPhrase}})');
}

return Gist.fromJson(jsonDecode(response.body) as Map<String, dynamic>);
Expand Down
4 changes: 2 additions & 2 deletions pkgs/sketch_pad/lib/keys.dart
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ final ShortcutActivator quickFixKeyActivator = SingleActivator(
final List<(String, ShortcutActivator)> keyBindings = [
('Code completion', codeCompletionKeyActivator),
('Find', findKeyActivator),
('Find Next', findNextKeyActivator),
('Quick Fixes', quickFixKeyActivator),
('Find next', findNextKeyActivator),
('Quick fixes', quickFixKeyActivator),
('Reload', reloadKeyActivator),
];

Expand Down
4 changes: 2 additions & 2 deletions pkgs/sketch_pad/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -890,7 +890,7 @@ class OverflowMenu extends StatelessWidget {
value: 'https://github.com/dart-lang/dart-pad/wiki/Sharing-Guide',
child: PointerInterceptor(
child: const ListTile(
title: Text('Sharing Guide'),
title: Text('Sharing guide'),
trailing: Icon(Icons.launch),
),
),
Expand Down Expand Up @@ -987,7 +987,7 @@ class _VersionInfoWidgetState extends State<VersionInfoWidget> {
context: context,
builder: (context) {
return MediumDialog(
title: 'Runtime Versions',
title: 'Runtime versions',
child: VersionTable(version: versions),
);
},
Expand Down

0 comments on commit 43a4cb3

Please sign in to comment.