Skip to content

Commit 9970481

Browse files
authored
[gen_keycodes] Mark generated file names with infix .g. (#106142)
1 parent f0200f0 commit 9970481

31 files changed

+62
-62
lines changed

dev/tools/gen_keycodes/README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,18 @@ the `LogicalKeyboardKey` and `PhysicalKeyboardKey` classes.
55

66
It generates multiple files across Flutter. For framework, it generates
77

8-
* [`keyboard_key.dart`](../../../packages/flutter/lib/src/services/keyboard_key.dart), which contains the definition and list of logical keys and physical keys; and
9-
* [`keyboard_maps.dart`](../../../packages/flutter/lib/src/services/keyboard_maps.dart), which contains platform-specific immutable maps used for the `RawKeyboard` API.
8+
* [`keyboard_key.g.dart`](../../../packages/flutter/lib/src/services/keyboard_key.g.dart), which contains the definition and list of logical keys and physical keys; and
9+
* [`keyboard_maps.g.dart`](../../../packages/flutter/lib/src/services/keyboard_maps.g.dart), which contains platform-specific immutable maps used for the `RawKeyboard` API.
1010

1111
For engine, it generates one key mapping file for each platform, as well as some
1212
files for testing purposes.
1313

1414
It draws information from various source bases, including online
1515
repositories, and manual mapping in the `data` subdirectory. It incorporates
1616
this information into a giant list of physical keys
17-
([`physical_key_data.json`](data/physical_key_data.json)),
17+
([`physical_key_data.g.json`](data/physical_key_data.g.json)),
1818
and another for logical keys
19-
([`logical_key_data.json`](data/logical_key_data.json)).
19+
([`logical_key_data.g.json`](data/logical_key_data.g.json)).
2020
The two files are checked in, and can be used as the data source next time so that
2121
output files can be generated without the Internet.
2222

@@ -35,7 +35,7 @@ anew before generating the files. To do this, run:
3535
/PATH/TO/ROOT/bin/gen_keycodes --collect
3636
```
3737

38-
This will generate `physical_key_data.json` and `logical_key_data.json`. These
38+
This will generate `physical_key_data.g.json` and `logical_key_data.g.json`. These
3939
files should be checked in.
4040

4141
By default this tool assumes that the gclient directory for flutter/engine
@@ -121,7 +121,7 @@ The planes are planned as follows:
121121
platforms managed by Flutter will start to send the new value, making it a
122122
breaking change. Therefore, when handling an unrecognized key on a platform
123123
managed by Flutter, it is recommended to file a new issue to add this value
124-
to `keyboard_key.dart` instead of using the platform-plane value. However,
124+
to `keyboard_key.g.dart` instead of using the platform-plane value. However,
125125
for a custom platform (see below), since the platform author has full control
126126
over key mapping, such change will not cause breakage and it is recommended
127127
to use the platform-plane value to avoid adding platform-exclusive values

dev/tools/gen_keycodes/bin/gen_keycodes.dart

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ Future<void> main(List<String> rawArguments) async {
108108
);
109109
argParser.addOption(
110110
'physical-data',
111-
defaultsTo: path.join(dataRoot, 'physical_key_data.json'),
111+
defaultsTo: path.join(dataRoot, 'physical_key_data.g.json'),
112112
help: 'The path to where the physical key data file should be written when '
113113
'collected, and read from when generating output code. If --physical-data is '
114114
'not specified, the output will be written to/read from the current '
@@ -117,7 +117,7 @@ Future<void> main(List<String> rawArguments) async {
117117
);
118118
argParser.addOption(
119119
'logical-data',
120-
defaultsTo: path.join(dataRoot, 'logical_key_data.json'),
120+
defaultsTo: path.join(dataRoot, 'logical_key_data.g.json'),
121121
help: 'The path to where the logical key data file should be written when '
122122
'collected, and read from when generating output code. If --logical-data is '
123123
'not specified, the output will be written to/read from the current '
@@ -126,16 +126,16 @@ Future<void> main(List<String> rawArguments) async {
126126
);
127127
argParser.addOption(
128128
'code',
129-
defaultsTo: path.join(flutterRoot.path, 'packages', 'flutter', 'lib', 'src', 'services', 'keyboard_key.dart'),
130-
help: 'The path to where the output "keyboard_key.dart" file should be '
129+
defaultsTo: path.join(flutterRoot.path, 'packages', 'flutter', 'lib', 'src', 'services', 'keyboard_key.g.dart'),
130+
help: 'The path to where the output "keyboard_key.g.dart" file should be '
131131
'written. If --code is not specified, the output will be written to the '
132132
'correct directory in the flutter tree. If the output directory does not '
133133
'exist, it, and the path to it, will be created.',
134134
);
135135
argParser.addOption(
136136
'maps',
137-
defaultsTo: path.join(flutterRoot.path, 'packages', 'flutter', 'lib', 'src', 'services', 'keyboard_maps.dart'),
138-
help: 'The path to where the output "keyboard_maps.dart" file should be '
137+
defaultsTo: path.join(flutterRoot.path, 'packages', 'flutter', 'lib', 'src', 'services', 'keyboard_maps.g.dart'),
138+
help: 'The path to where the output "keyboard_maps.g.dart" file should be '
139139
'written. If --maps is not specified, the output will be written to the '
140140
'correct directory in the flutter tree. If the output directory does not '
141141
'exist, it, and the path to it, will be created.',
@@ -145,7 +145,7 @@ Future<void> main(List<String> rawArguments) async {
145145
negatable: false,
146146
help: 'If this flag is set, then collect and parse header files from '
147147
'Chromium and Android instead of reading pre-parsed data from '
148-
'"physical_key_data.json" and "logical_key_data.json", and then '
148+
'"physical_key_data.g.json" and "logical_key_data.g.json", and then '
149149
'update these files with the fresh data.',
150150
);
151151
argParser.addFlag(
@@ -226,7 +226,7 @@ Future<void> main(List<String> rawArguments) async {
226226
KeyboardMapsCodeGenerator(physicalData, logicalData));
227227
await generate('engine utils',
228228
path.join(PlatformCodeGenerator.engineRoot,
229-
'shell', 'platform', 'embedder', 'test_utils', 'key_codes.h'),
229+
'shell', 'platform', 'embedder', 'test_utils', 'key_codes.g.h'),
230230
KeyCodesCcGenerator(physicalData, logicalData));
231231
await generate('android utils',
232232
path.join(PlatformCodeGenerator.engineRoot, 'shell', 'platform',

dev/tools/gen_keycodes/data/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44

55
| File name | Explanation |
66
| ---- | ---- |
7-
| [`physical_key_data.json`](physical_key_data.json) | Contains the merged physical key data from all the other sources. This file is regenerated if "--collect" is specified for the gen_keycodes script, or used as a source otherwise. |
8-
| [`logical_key_data.json`](logical_key_data.json) | Contains the merged logical key data from all the other sources. This file is regenerated if "--collect" is specified for the gen_keycodes script, or used as a source otherwise. |
7+
| [`physical_key_data.g.json`](physical_key_data.g.json) | Contains the merged physical key data from all the other sources. This file is regenerated if "--collect" is specified for the gen_keycodes script, or used as a source otherwise. |
8+
| [`logical_key_data.g.json`](logical_key_data.g.json) | Contains the merged logical key data from all the other sources. This file is regenerated if "--collect" is specified for the gen_keycodes script, or used as a source otherwise. |
99
| [`supplemental_hid_codes.inc`](supplemental_hid_codes.inc) | A supplementary HID list on top of Chromium's list of HID codes for extra physical keys. Certain entries may also overwrite Chromium's corresponding entries. |
1010
| [`supplemental_key_data.inc`](supplemental_key_data.inc) | A supplementary key list on top of Chromium's list of keys for extra logical keys.|
1111
| [`chromium_modifiers.json`](chromium_modifiers.json) | Maps the web's `key` for modifier keys to the names of the logical keys for these keys' left and right variations.This is used when generating logical keys to provide independent values for sided logical keys. Web uses the same `key` for modifier keys of different sides, but Flutter's logical key model treats them as different keys.|
@@ -17,8 +17,8 @@
1717

1818
| File name | Explanation |
1919
| ---- | ---- |
20-
| [`keyboard_key.tmpl`](keyboard_key.tmpl) | The template for `keyboard_key.dart`. |
21-
| [`keyboard_maps.tmpl`](keyboard_maps.tmpl) | The template for `keyboard_maps.dart`. |
20+
| [`keyboard_key.tmpl`](keyboard_key.tmpl) | The template for `keyboard_key.g.dart`. |
21+
| [`keyboard_maps.tmpl`](keyboard_maps.tmpl) | The template for `keyboard_maps.g.dart`. |
2222

2323

2424
### Android

dev/tools/gen_keycodes/data/keyboard_maps.tmpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
// Edit the template dev/tools/gen_keycodes/data/keyboard_maps.tmpl instead.
1010
// See dev/tools/gen_keycodes/README.md for more information.
1111

12-
import 'keyboard_key.dart';
12+
import 'keyboard_key.g.dart';
1313

14-
export 'keyboard_key.dart' show LogicalKeyboardKey, PhysicalKeyboardKey;
14+
export 'keyboard_key.g.dart' show LogicalKeyboardKey, PhysicalKeyboardKey;
1515

1616
/// Maps Android-specific key codes to the matching [LogicalKeyboardKey].
1717
const Map<int, LogicalKeyboardKey> kAndroidToLogicalKey = <int, LogicalKeyboardKey>{

dev/tools/gen_keycodes/lib/base_code_gen.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ abstract class BaseCodeGenerator {
3434
Map<String, String> mappings();
3535

3636
/// Substitutes the various platform specific maps into the template file for
37-
/// keyboard_maps.dart.
37+
/// keyboard_maps.g.dart.
3838
String generate() {
3939
final String template = File(templatePath).readAsStringSync();
4040
return _injectDictionary(template, mappings());

dev/tools/gen_keycodes/lib/gtk_code_gen.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ class GtkCodeGenerator extends PlatformCodeGenerator {
129129

130130
@override
131131
String outputPath(String platform) => path.join(PlatformCodeGenerator.engineRoot,
132-
'shell', 'platform', 'linux', 'key_mapping.cc');
132+
'shell', 'platform', 'linux', 'key_mapping.g.cc');
133133

134134
@override
135135
Map<String, String> mappings() {

dev/tools/gen_keycodes/lib/ios_code_gen.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ class IOSCodeGenerator extends PlatformCodeGenerator {
122122

123123
@override
124124
String outputPath(String platform) => path.join(PlatformCodeGenerator.engineRoot,
125-
'shell', 'platform', 'darwin', 'ios', 'framework', 'Source', 'KeyCodeMap.mm');
125+
'shell', 'platform', 'darwin', 'ios', 'framework', 'Source', 'KeyCodeMap.g.mm');
126126

127127
@override
128128
Map<String, String> mappings() {

dev/tools/gen_keycodes/lib/keyboard_keys_code_gen.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ class SynonymKeyInfo {
4646
String get constantName => upperCamelToLowerCamel(name);
4747
}
4848

49-
/// Generates the keyboard_key.dart based on the information in the key data
49+
/// Generates the keyboard_key.g.dart based on the information in the key data
5050
/// structure given to it.
5151
class KeyboardKeysCodeGenerator extends BaseCodeGenerator {
5252
KeyboardKeysCodeGenerator(super.keyData, super.logicalData);

dev/tools/gen_keycodes/lib/keyboard_maps_code_gen.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ bool _isDigit(String? char) {
3434
return charCode >= charDigit0 && charCode <= charDigit9;
3535
}
3636

37-
/// Generates the keyboard_maps.dart files, based on the information in the key
37+
/// Generates the keyboard_maps.g.dart files, based on the information in the key
3838
/// data structure given to it.
3939
class KeyboardMapsCodeGenerator extends BaseCodeGenerator {
4040
KeyboardMapsCodeGenerator(super.keyData, super.logicalData);
@@ -176,7 +176,7 @@ class KeyboardMapsCodeGenerator extends BaseCodeGenerator {
176176
String get _windowsKeyCodeMap {
177177
final OutputLines<int> lines = OutputLines<int>('Windows key code map');
178178
for (final LogicalKeyEntry entry in logicalData.entries) {
179-
// Letter keys on Windows are not recorded in logical_key_data.json,
179+
// Letter keys on Windows are not recorded in logical_key_data.g.json,
180180
// because they are not used by the embedding. Add them manually.
181181
final List<int>? keyCodes = entry.windowsValues.isNotEmpty
182182
? entry.windowsValues

dev/tools/gen_keycodes/lib/logical_key_data.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -569,7 +569,7 @@ class LogicalKeyEntry {
569569

570570
/// A string indicating the letter on the keycap of a letter key.
571571
///
572-
/// This is only used to generate the key label mapping in keyboard_map.dart.
572+
/// This is only used to generate the key label mapping in keyboard_maps.g.dart.
573573
/// [LogicalKeyboardKey.keyLabel] uses a different definition and is generated
574574
/// differently.
575575
final String? keyLabel;
@@ -607,7 +607,7 @@ class LogicalKeyEntry {
607607
}
608608

609609
/// Gets the named used for the key constant in the definitions in
610-
/// keyboard_key.dart.
610+
/// keyboard_key.g.dart.
611611
///
612612
/// If set by the constructor, returns the name set, but otherwise constructs
613613
/// the name from the various different names available, making sure that the

dev/tools/gen_keycodes/lib/macos_code_gen.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ class MacOSCodeGenerator extends PlatformCodeGenerator {
119119

120120
@override
121121
String outputPath(String platform) => path.join(PlatformCodeGenerator.engineRoot,
122-
'shell', 'platform', 'darwin', 'macos', 'framework', 'Source', 'KeyCodeMap.mm');
122+
'shell', 'platform', 'darwin', 'macos', 'framework', 'Source', 'KeyCodeMap.g.mm');
123123

124124
@override
125125
Map<String, String> mappings() {

dev/tools/gen_keycodes/lib/physical_key_data.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ class PhysicalKeyEntry {
313313
String get commentName => getCommentName(constantName);
314314

315315
/// Gets the named used for the key constant in the definitions in
316-
/// keyboard_key.dart.
316+
/// keyboard_key.g.dart.
317317
///
318318
/// If set by the constructor, returns the name set, but otherwise constructs
319319
/// the name from the various different names available, making sure that the

dev/tools/gen_keycodes/lib/web_code_gen.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ class WebCodeGenerator extends PlatformCodeGenerator {
6666

6767
@override
6868
String outputPath(String platform) => path.join(PlatformCodeGenerator.engineRoot,
69-
'lib', 'web_ui', 'lib', 'src', 'engine', 'key_map.dart');
69+
'lib', 'web_ui', 'lib', 'src', 'engine', 'key_map.g.dart');
7070

7171
@override
7272
Map<String, String> mappings() {

dev/tools/gen_keycodes/lib/windows_code_gen.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ class WindowsCodeGenerator extends PlatformCodeGenerator {
8383

8484
@override
8585
String outputPath(String platform) => path.join(PlatformCodeGenerator.engineRoot,
86-
'shell', 'platform', 'windows', 'flutter_key_map.cc');
86+
'shell', 'platform', 'windows', 'flutter_key_map.g.cc');
8787

8888
@override
8989
Map<String, String> mappings() {

dev/tools/gen_keycodes/test/gen_keycodes_test.dart

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ String readDataFile(String fileName) {
2323
}
2424

2525
final PhysicalKeyData physicalData = PhysicalKeyData.fromJson(
26-
json.decode(readDataFile('physical_key_data.json')) as Map<String, dynamic>);
26+
json.decode(readDataFile('physical_key_data.g.json')) as Map<String, dynamic>);
2727
final LogicalKeyData logicalData = LogicalKeyData.fromJson(
28-
json.decode(readDataFile('logical_key_data.json')) as Map<String, dynamic>);
28+
json.decode(readDataFile('logical_key_data.g.json')) as Map<String, dynamic>);
2929
final Map<String, bool> keyGoals = parseMapOfBool(
3030
readDataFile('layout_goals.json'));
3131

@@ -71,7 +71,7 @@ void main() {
7171
);
7272
final String output = codeGenerator.generate();
7373

74-
expect(codeGenerator.outputPath(platform), endsWith('KeyCodeMap.mm'));
74+
expect(codeGenerator.outputPath(platform), endsWith('KeyCodeMap.g.mm'));
7575
expect(output, contains('kValueMask'));
7676
expect(output, contains('keyCodeToPhysicalKey'));
7777
expect(output, contains('keyCodeToLogicalKey'));
@@ -89,7 +89,7 @@ void main() {
8989
);
9090
final String output = codeGenerator.generate();
9191

92-
expect(codeGenerator.outputPath(platform), endsWith('KeyCodeMap.mm'));
92+
expect(codeGenerator.outputPath(platform), endsWith('KeyCodeMap.g.mm'));
9393
expect(output, contains('kValueMask'));
9494
expect(output, contains('keyCodeToPhysicalKey'));
9595
expect(output, contains('keyCodeToLogicalKey'));
@@ -109,7 +109,7 @@ void main() {
109109
);
110110
final String output = codeGenerator.generate();
111111

112-
expect(codeGenerator.outputPath(platform), endsWith('flutter_key_map.cc'));
112+
expect(codeGenerator.outputPath(platform), endsWith('flutter_key_map.g.cc'));
113113
expect(output, contains('KeyboardKeyEmbedderHandler::windowsToPhysicalMap_'));
114114
expect(output, contains('KeyboardKeyEmbedderHandler::windowsToLogicalMap_'));
115115
expect(output, contains('KeyboardKeyEmbedderHandler::scanCodeToLogicalMap_'));
@@ -126,7 +126,7 @@ void main() {
126126
);
127127
final String output = codeGenerator.generate();
128128

129-
expect(codeGenerator.outputPath(platform), endsWith('key_mapping.cc'));
129+
expect(codeGenerator.outputPath(platform), endsWith('key_mapping.g.cc'));
130130
expect(output, contains('initialize_modifier_bit_to_checked_keys'));
131131
expect(output, contains('initialize_lock_bit_to_checked_keys'));
132132
checkCommonOutput(output);
@@ -140,7 +140,7 @@ void main() {
140140
);
141141
final String output = codeGenerator.generate();
142142

143-
expect(codeGenerator.outputPath(platform), endsWith('key_map.dart'));
143+
expect(codeGenerator.outputPath(platform), endsWith('key_map.g.dart'));
144144
expect(output, contains('kWebToLogicalKey'));
145145
expect(output, contains('kWebToPhysicalKey'));
146146
expect(output, contains('kWebLogicalLocationMap'));

packages/flutter/lib/services.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ export 'src/services/deferred_component.dart';
2020
export 'src/services/font_loader.dart';
2121
export 'src/services/haptic_feedback.dart';
2222
export 'src/services/hardware_keyboard.dart';
23-
export 'src/services/keyboard_key.dart';
24-
export 'src/services/keyboard_maps.dart';
23+
export 'src/services/keyboard_key.g.dart';
24+
export 'src/services/keyboard_maps.g.dart';
2525
export 'src/services/message_codec.dart';
2626
export 'src/services/message_codecs.dart';
2727
export 'src/services/mouse_cursor.dart';

packages/flutter/lib/src/services/hardware_keyboard.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export 'dart:ui' show KeyData;
1313

1414
export 'package:flutter/foundation.dart' show DiagnosticPropertiesBuilder;
1515

16-
export 'keyboard_key.dart' show LogicalKeyboardKey, PhysicalKeyboardKey;
16+
export 'keyboard_key.g.dart' show LogicalKeyboardKey, PhysicalKeyboardKey;
1717
export 'raw_keyboard.dart' show RawKeyboard, RawKeyEvent;
1818

1919
/// Represents a lock mode of a keyboard, such as [KeyboardLockMode.capsLock].

packages/flutter/lib/src/services/keyboard_maps.dart renamed to packages/flutter/lib/src/services/keyboard_maps.g.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
// Edit the template dev/tools/gen_keycodes/data/keyboard_maps.tmpl instead.
1010
// See dev/tools/gen_keycodes/README.md for more information.
1111

12-
import 'keyboard_key.dart';
12+
import 'keyboard_key.g.dart';
1313

14-
export 'keyboard_key.dart' show LogicalKeyboardKey, PhysicalKeyboardKey;
14+
export 'keyboard_key.g.dart' show LogicalKeyboardKey, PhysicalKeyboardKey;
1515

1616
/// Maps Android-specific key codes to the matching [LogicalKeyboardKey].
1717
const Map<int, LogicalKeyboardKey> kAndroidToLogicalKey = <int, LogicalKeyboardKey>{

packages/flutter/lib/src/services/raw_keyboard.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import 'package:flutter/foundation.dart';
77

88
import 'binding.dart';
99
import 'hardware_keyboard.dart';
10-
import 'keyboard_key.dart';
10+
import 'keyboard_key.g.dart';
1111
import 'raw_keyboard_android.dart';
1212
import 'raw_keyboard_fuchsia.dart';
1313
import 'raw_keyboard_ios.dart';
@@ -19,7 +19,7 @@ import 'system_channels.dart';
1919

2020
export 'package:flutter/foundation.dart' show DiagnosticPropertiesBuilder, ValueChanged;
2121

22-
export 'keyboard_key.dart' show LogicalKeyboardKey, PhysicalKeyboardKey;
22+
export 'keyboard_key.g.dart' show LogicalKeyboardKey, PhysicalKeyboardKey;
2323

2424
/// An enum describing the side of the keyboard that a key is on, to allow
2525
/// discrimination between which key is pressed (e.g. the left or right SHIFT

packages/flutter/lib/src/services/raw_keyboard_android.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44

55
import 'package:flutter/foundation.dart';
66

7-
import 'keyboard_maps.dart';
7+
import 'keyboard_maps.g.dart';
88
import 'raw_keyboard.dart';
99

1010
export 'package:flutter/foundation.dart' show DiagnosticPropertiesBuilder;
1111

12-
export 'keyboard_key.dart' show LogicalKeyboardKey, PhysicalKeyboardKey;
12+
export 'keyboard_key.g.dart' show LogicalKeyboardKey, PhysicalKeyboardKey;
1313
export 'raw_keyboard.dart' show KeyboardSide, ModifierKey;
1414

1515
// Android sets the 0x80000000 bit on a character to indicate that it is a

packages/flutter/lib/src/services/raw_keyboard_fuchsia.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44

55
import 'package:flutter/foundation.dart';
66

7-
import 'keyboard_maps.dart';
7+
import 'keyboard_maps.g.dart';
88
import 'raw_keyboard.dart';
99

1010
export 'package:flutter/foundation.dart' show DiagnosticPropertiesBuilder;
1111

12-
export 'keyboard_key.dart' show LogicalKeyboardKey, PhysicalKeyboardKey;
12+
export 'keyboard_key.g.dart' show LogicalKeyboardKey, PhysicalKeyboardKey;
1313
export 'raw_keyboard.dart' show KeyboardSide, ModifierKey;
1414

1515
/// Platform-specific key event data for Fuchsia.

packages/flutter/lib/src/services/raw_keyboard_ios.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44

55
import 'package:flutter/foundation.dart';
66

7-
import 'keyboard_maps.dart';
7+
import 'keyboard_maps.g.dart';
88
import 'raw_keyboard.dart';
99

1010
export 'package:flutter/foundation.dart' show DiagnosticPropertiesBuilder;
1111

12-
export 'keyboard_key.dart' show LogicalKeyboardKey, PhysicalKeyboardKey;
12+
export 'keyboard_key.g.dart' show LogicalKeyboardKey, PhysicalKeyboardKey;
1313
export 'raw_keyboard.dart' show KeyboardSide, ModifierKey;
1414

1515
/// Maps iOS specific string values of nonvisible keys to logical keys

0 commit comments

Comments
 (0)