Skip to content

Commit f911d83

Browse files
chrisbobbegnprice
authored andcommitted
licenses: Add [additionalLicenses], to be used for a font soon
1 parent 38974d9 commit f911d83

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

lib/licenses.dart

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import 'package:flutter/foundation.dart';
2+
3+
/// Our [LicenseEntryCollector] for licenses that aren't included by default.
4+
///
5+
/// Licenses that ship with our Dart-package dependencies are included
6+
/// automatically. This collects other licenses, such as for fonts we include in
7+
/// our asset bundle.
8+
// If the license text is meant to be read from a file in the asset bundle,
9+
// remember to include the file in the asset bundle by listing its path
10+
// under `assets` in pubspec.yaml.
11+
Stream<LicenseEntry> additionalLicenses() async* {
12+
// TODO add some
13+
}

lib/main.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1+
import 'package:flutter/foundation.dart';
12
import 'package:flutter/material.dart';
23

4+
import 'licenses.dart';
35
import 'log.dart';
46
import 'widgets/app.dart';
57

@@ -8,5 +10,6 @@ void main() {
810
debugLogEnabled = true;
911
return true;
1012
}());
13+
LicenseRegistry.addLicense(additionalLicenses);
1114
runApp(const ZulipApp());
1215
}

0 commit comments

Comments
 (0)