Placing the Ubuntu Font Family downloaded form the Ubuntu font website into the lib folder.
How to use #
To use this package, place the following in your
flutter: fonts: - family: Ubuntu fonts: - asset: packages/ubuntu_font_flutter/Ubuntu-R.ttf - asset: packages/ubuntu_font_flutter/Ubuntu-RI.ttf style: italic - asset: packages/ubuntu_font_flutter/Ubuntu-B.ttf weight: 700 - asset: packages/ubuntu_font_flutter/Ubuntu-BI.ttf weight: 700 style: italic - asset: packages/ubuntu_font_flutter/Ubuntu-L.ttf weight: 300 - asset: packages/ubuntu_font_flutter/Ubuntu-LI.ttf weight: 300 style: italic - asset: packages/ubuntu_font_flutter/Ubuntu-M.ttf weight: 500 - asset: packages/ubuntu_font_flutter/Ubuntu-MI.ttf weight: 500 style: italic - family: Ubuntu Mono fonts: - asset: packages/ubuntu_font_flutter/UbuntuMono-R.ttf - asset: packages/ubuntu_font_flutter/UbuntuMono-RI.ttf style: italic - asset: packages/ubuntu_font_flutter/UbuntuMono-B.ttf weight: 700 - asset: packages/ubuntu_font_flutter/UbuntuMono-BI.ttf weight: 700 style: italic - family: Ubuntu Condensed fonts: - asset: packages/ubuntu_font_flutter/Ubuntu-C.ttf
[0.0.1] - Initial release #
- Added font from 28.11.2018
Use this package as a library
1. Depend on it
Add this to your package's pubspec.yaml file:
dependencies: ubuntu_font_flutter: ^0.0.1
2. Install it
You can install packages from the command line:
$ pub get
$ flutter pub get
Alternatively, your editor might support
pub get or
flutter pub get.
Check the docs for your editor to learn more.
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
We analyzed this package on Apr 8, 2020, and provided a score, details, and suggestions below. Analysis was completed with status completed using:
- Dart: 2.7.1
- pana: 0.13.6
- Flutter: 1.12.13+hotfix.8
Maintenance issues and suggestions
No valid SDK. (-20 points)
The analysis could not detect a valid SDK that can use this package.
dartdoc successfully runs on your package's source files. (-10 points)
exitCode: 255 stdout: parsing /flutter/bin/cache/pkg/sky_engine/lib/collection/collection.dart... parsing /flutter/bin/cache/pkg/sky_engine/lib/developer/developer.dart... parsing /flutter/bin/cache/pkg/sky_engine/lib/internal/internal.dart... parsing /flutter/bin/cache/pkg/sky_engine/lib/_interceptors/interceptors.dart... parsing /flutter/bin/cache/pkg/sky_engine/lib/io/io.dart... parsing /flutter/bin/cache/pkg/sky_engine/lib/isolate/isolate.dart... parsing /flutter/bin/cache/pkg/sky_engine/lib/convert/convert.dart... parsing /flutter/bin/cache/pkg/sky_engine/lib/async/async.dart... parsing /flutter/bin/cache/pkg/sky_engine/lib/typed_data/typed_data.dart... parsing /flutter/bin/cache/pkg/sky_engine/lib/_empty.dart... parsing /flutter/bin/cache/pkg/sky_engine/lib/js_util/js_util_dart2js.dart... parsing /flutter/bin/cache/pkg/sky_engine/lib/html/html_dart2js.dart... parsing /flutter/bin/cache/pkg/sky_engine/lib/math/math.dart... parsing /flutter/bin/cache/pkg/sky_engine/lib/core/core.dart... parsing /flutter/bin/cache/pkg/sky_engine/lib/_http/http.dart... parsing /flutter/bin/cache/pkg/sky_engine/lib/ui/ui.dart... parsing /flutter/bin/cache/pkg/sky_engine/lib/js/js_dart2js.dart... parsing /flutter/bin/cache/pkg/sky_engine/lib/ffi/ffi.dart... parsing /flutter/bin/cache/pkg/sky_engine/lib/wasm/wasm.dart... parsing /flutter/bin/cache/pkg/sky_engine/lib/_interceptors/js_array.dart... parsing /flutter/bin/cache/pkg/sky_engine/lib/_interceptors/js_number.dart... parsing /flutter/bin/cache/pkg/sky_engine/lib/_interceptors/js_string.dart... Initialized dartdoc with 19 libraries in 29.0 seconds documenting ubuntu_font_flutter Validating docs... no issues found Documented 0 public libraries in 0.7 seconds stderr: Documenting ubuntu_font_flutter... Unhandled exception: dartdoc could not find any libraries to document #0 Dartdoc.generateDocs (package:dartdoc/dartdoc.dart:196:7)
Package is getting outdated. (-35.89 points)
The package was last published 70 weeks ago.
The package description is too short. (-20 points)
Add more detail to the
description field of
pubspec.yaml. Use 60 to 180 characters to describe the package, what it does, and its target use case.
Package is pre-v0.1 release. (-10 points)
While nothing is inherently wrong with versions of
0.0.*, it might mean that the author is still experimenting with the general direction of the API.