-
-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(uiux): add circular radius to linear progression bars
- Loading branch information
1 parent
958e6f1
commit d9623e9
Showing
5 changed files
with
133 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,124 @@ | ||
import 'package:flutter/material.dart'; | ||
import 'package:google_fonts/google_fonts.dart'; | ||
|
||
class LunaTextStyle extends TextStyle { | ||
const LunaTextStyle.labelMedium() | ||
: super( | ||
fontSize: 12.0, // md.sys.typescale.label-medium.size | ||
fontWeight: FontWeight.w500, // md.sys.typescale.label-medium.weight | ||
height: 16.0 / 12.0, // md.sys.typescale.label-medium.line-height | ||
); | ||
class LunaTextStyle { | ||
static TextStyle bodySmall() { | ||
return GoogleFonts.robotoFlex( | ||
height: 16.0, // md.sys.typescale.body-small.line-height | ||
fontSize: 12.0, // md.sys.typescale.body-small.size | ||
fontWeight: FontWeight.w400, // md.sys.typescale.body-small.weight | ||
); | ||
} | ||
|
||
static TextStyle bodyMedium() { | ||
return GoogleFonts.robotoFlex( | ||
height: 20.0, // md.sys.typescale.body-medium.line-height | ||
fontSize: 14.0, // md.sys.typescale.body-medium.size | ||
fontWeight: FontWeight.w400, // md.sys.typescale.body-medium.weight | ||
); | ||
} | ||
|
||
static TextStyle bodyLarge() { | ||
return GoogleFonts.robotoFlex( | ||
height: 24.0, // md.sys.typescale.body-large.line-height | ||
fontSize: 16.0, // md.sys.typescale.body-large.size | ||
fontWeight: FontWeight.w400, // md.sys.typescale.body-large.weight | ||
); | ||
} | ||
|
||
static TextStyle displaySmall() { | ||
return GoogleFonts.robotoFlex( | ||
height: 44.0, // md.sys.typescale.display-small.line-height | ||
fontSize: 36.0, // md.sys.typescale.display-small.size | ||
fontWeight: FontWeight.w400, // md.sys.typescale.display-small.weight | ||
); | ||
} | ||
|
||
static TextStyle displayMedium() { | ||
return GoogleFonts.robotoFlex( | ||
height: 52.0, // md.sys.typescale.display-medium.line-height | ||
fontSize: 45.0, // md.sys.typescale.display-medium.size | ||
fontWeight: FontWeight.w400, // md.sys.typescale.display-medium.weight | ||
); | ||
} | ||
|
||
static TextStyle displayLarge() { | ||
return GoogleFonts.robotoFlex( | ||
height: 64.0, // md.sys.typescale.display-large.line-height | ||
fontSize: 57.0, // md.sys.typescale.display-large.size | ||
fontWeight: FontWeight.w400, // md.sys.typescale.display-large.weight | ||
); | ||
} | ||
|
||
static TextStyle headlineSmall() { | ||
return GoogleFonts.robotoFlex( | ||
height: 40.0, // md.sys.typescale.headline-small.line-height | ||
fontSize: 32.0, // md.sys.typescale.headline-small.size | ||
fontWeight: FontWeight.w400, // md.sys.typescale.headline-small.weight | ||
); | ||
} | ||
|
||
static TextStyle headlineMedium() { | ||
return GoogleFonts.robotoFlex( | ||
height: 36.0, // md.sys.typescale.headline-medium.line-height | ||
fontSize: 28.0, // md.sys.typescale.headline-medium.size | ||
fontWeight: FontWeight.w400, // md.sys.typescale.headline-medium.weight | ||
); | ||
} | ||
|
||
static TextStyle headlineLarge() { | ||
return GoogleFonts.robotoFlex( | ||
height: 32.0, // md.sys.typescale.headline-large.line-height | ||
fontSize: 24.0, // md.sys.typescale.headline-large.size | ||
fontWeight: FontWeight.w400, // md.sys.typescale.headline-large.weight | ||
); | ||
} | ||
|
||
static TextStyle labelSmall() { | ||
return GoogleFonts.robotoFlex( | ||
height: 16.0, // md.sys.typescale.label-small.line-height | ||
fontSize: 11.0, // md.sys.typescale.label-small.size | ||
fontWeight: FontWeight.w500, // md.sys.typescale.label-small.weight | ||
); | ||
} | ||
|
||
static TextStyle labelMedium() { | ||
return GoogleFonts.robotoFlex( | ||
height: 16.0, // md.sys.typescale.label-medium.line-height | ||
fontSize: 12.0, // md.sys.typescale.label-medium.size | ||
fontWeight: FontWeight.w500, // md.sys.typescale.label-medium.weight | ||
); | ||
} | ||
|
||
static TextStyle labelLarge() { | ||
return GoogleFonts.robotoFlex( | ||
height: 20.0, // md.sys.typescale.label-large.line-height | ||
fontSize: 14.0, // md.sys.typescale.label-large.size | ||
fontWeight: FontWeight.w500, // md.sys.typescale.label-large.weight | ||
); | ||
} | ||
|
||
static TextStyle titleSmall() { | ||
return GoogleFonts.robotoFlex( | ||
height: 20.0, // md.sys.typescale.title-small.line-height | ||
fontSize: 14.0, // md.sys.typescale.title-small.size | ||
fontWeight: FontWeight.w500, // md.sys.typescale.title-small.weight | ||
); | ||
} | ||
|
||
static TextStyle titleMedium() { | ||
return GoogleFonts.robotoFlex( | ||
height: 24.0, // md.sys.typescale.title-medium.line-height | ||
fontSize: 16.0, // md.sys.typescale.title-medium.size | ||
fontWeight: FontWeight.w500, // md.sys.typescale.title-medium.weight | ||
); | ||
} | ||
|
||
static TextStyle titleLarge() { | ||
return GoogleFonts.robotoFlex( | ||
height: 28.0, // md.sys.typescale.title-large.line-height | ||
fontSize: 22.0, // md.sys.typescale.title-large.size | ||
fontWeight: FontWeight.w400, // md.sys.typescale.title-large.weight | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters