Skip to content

Commit 986bcec

Browse files
committed
licenses: Alphabetize
We might reasonably have declared them alphabetized by the first element in the "packages" list ('Noto Color Emoji', 'Source Code Pro', etc.; the first argument passed to LicenseEntryWithLineBreaks). But I didn't think that would be best in a future where we add something with more than one item in that "packages" list.
1 parent 99a8072 commit 986bcec

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

lib/licenses.dart

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,17 @@ import 'package:flutter/services.dart';
1010
// remember to include the file in the asset bundle by listing its path
1111
// under `assets` in pubspec.yaml.
1212
Stream<LicenseEntry> additionalLicenses() async* {
13+
// Alphabetic by path.
14+
15+
yield LicenseEntryWithLineBreaks(
16+
['Noto Color Emoji'],
17+
await rootBundle.loadString('assets/Noto_Color_Emoji/LICENSE'));
1318
yield LicenseEntryWithLineBreaks(
1419
['Source Code Pro'],
1520
await rootBundle.loadString('assets/Source_Code_Pro/LICENSE.md'));
1621
yield LicenseEntryWithLineBreaks(
1722
['Source Sans 3'],
1823
await rootBundle.loadString('assets/Source_Sans_3/LICENSE.md'));
19-
yield LicenseEntryWithLineBreaks(
20-
['Noto Color Emoji'],
21-
await rootBundle.loadString('assets/Noto_Color_Emoji/LICENSE'));
24+
25+
// Alphabetic by path.
2226
}

0 commit comments

Comments
 (0)