Skip to content

Commit

Permalink
licenses: Alphabetize
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
chrisbobbe committed Jun 26, 2024
1 parent d9e757c commit d859da5
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions lib/licenses.dart
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,17 @@ import 'package:flutter/services.dart';
// remember to include the file in the asset bundle by listing its path
// under `assets` in pubspec.yaml.
Stream<LicenseEntry> additionalLicenses() async* {
// Alphabetic by path.

yield LicenseEntryWithLineBreaks(
['Noto Color Emoji'],
await rootBundle.loadString('assets/Noto_Color_Emoji/LICENSE'));
yield LicenseEntryWithLineBreaks(
['Source Code Pro'],
await rootBundle.loadString('assets/Source_Code_Pro/LICENSE.md'));
yield LicenseEntryWithLineBreaks(
['Source Sans 3'],
await rootBundle.loadString('assets/Source_Sans_3/LICENSE.md'));
yield LicenseEntryWithLineBreaks(
['Noto Color Emoji'],
await rootBundle.loadString('assets/Noto_Color_Emoji/LICENSE'));

// Alphabetic by path.
}

0 comments on commit d859da5

Please sign in to comment.