Giter VIP home page Giter VIP logo

acme_fonts's Introduction

This flutter package is created to organize the fonts instead of manually adding into project. The explanation can be checked in this article.

Fonts

  • Inter
  • Montserrat

Getting started

  • Add the package from github in the project pubspec.yaml
dependencies:
  acme_fonts:
    git:
      url: https://github.com/arkarmintun1/acme_fonts.git
      ref: main
  • Import the fonts
flutter:
  fonts:
    - family: Inter
      fonts:
        - asset: packages/acme_fonts/fonts/Inter-Thin.ttf
          weight: 100
        - asset: packages/acme_fonts/fonts/Inter-ExtraLight.ttf
          weight: 200
        - asset: packages/acme_fonts/fonts/Inter-Light.ttf
          weight: 300
        - asset: packages/acme_fonts/fonts/Inter-Regular.ttf
          weight: 400
        - asset: packages/acme_fonts/fonts/Inter-Medium.ttf
          weight: 500
        - asset: packages/acme_fonts/fonts/Inter-SemiBold.ttf
          weight: 600
        - asset: packages/acme_fonts/fonts/Inter-Bold.ttf
          weight: 700
        - asset: packages/acme_fonts/fonts/Inter-ExtraBold.ttf
          weight: 800
        - asset: packages/acme_fonts/fonts/Inter-Black.ttf
          weight: 900
    - family: Montserrat
      fonts:
        - asset: packages/acme_fonts/fonts/Montserrat-Thin.ttf
          weight: 100
        - asset: packages/acme_fonts/fonts/Montserrat-ExtraLight.ttf
          weight: 200
        - asset: packages/acme_fonts/fonts/Montserrat-Light.ttf
          weight: 300
        - asset: packages/acme_fonts/fonts/Montserrat-Regular.ttf
          weight: 400
        - asset: packages/acme_fonts/fonts/Montserrat-Medium.ttf
          weight: 500
        - asset: packages/acme_fonts/fonts/Montserrat-SemiBold.ttf
          weight: 600
        - asset: packages/acme_fonts/fonts/Montserrat-Bold.ttf
          weight: 700
        - asset: packages/acme_fonts/fonts/Montserrat-ExtraBold.ttf
          weight: 800
        - asset: packages/acme_fonts/fonts/Montserrat-Black.ttf
          weight: 900

Usage

Text(
  "Using the Inter font from the acme_fonts package",
  style: TextStyle(fontFamily: AcmeFonts.inter),
)

acme_fonts's People

Contributors

arkarmintun1 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.