-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #247 from takenet/release/0.0.96
[Release] 0.0.96
- Loading branch information
Showing
10 changed files
with
144 additions
and
12 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
20 changes: 20 additions & 0 deletions
20
lib/src/themes/texts/styles/ds_headline_extra_large_text_style.theme.dart
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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import 'package:flutter/material.dart'; | ||
|
||
import '../utils/ds_font_weights.theme.dart'; | ||
import 'ds_text_style.theme.dart'; | ||
|
||
/// A Design System's [TextStyle] primarily used by extra large titles. | ||
/// | ||
/// This style's font variant is $fs-32-h2. | ||
class DSHeadlineExtraLargeTextStyle extends DSTextStyle { | ||
/// Creates a Design System's [TextStyle] with $fs-32-h2 font variant. | ||
const DSHeadlineExtraLargeTextStyle({ | ||
super.color, | ||
super.overflow, | ||
super.fontWeight = DSFontWeights.semiBold, | ||
super.fontStyle, | ||
super.height = 1.25, | ||
}) : super( | ||
fontSize: 32.0, | ||
); | ||
} |
55 changes: 55 additions & 0 deletions
55
lib/src/widgets/texts/ds_headline_extra_large_text.widget.dart
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 |
---|---|---|
@@ -0,0 +1,55 @@ | ||
import '../../themes/texts/styles/ds_headline_extra_large_text_style.theme.dart'; | ||
import '../../themes/texts/utils/ds_font_weights.theme.dart'; | ||
import 'ds_text.widget.dart'; | ||
|
||
/// A Design System's [Text] primarily used by large titles. | ||
/// | ||
/// Sets [DSHeadlineExtraLargeTextStyle] as [style] default value. This style's font variant is $fs-32-h2. | ||
class DSHeadlineExtraLargeText extends DSText { | ||
/// Creates a Design System's [Text] with $fs-32-h2 font variant. | ||
DSHeadlineExtraLargeText( | ||
super.text, { | ||
super.key, | ||
super.color, | ||
super.linkColor, | ||
super.overflow, | ||
super.textAlign, | ||
super.maxLines, | ||
super.fontWeight = DSFontWeights.semiBold, | ||
super.fontStyle, | ||
super.shouldLinkify, | ||
super.isSelectable, | ||
super.height = 1.25, | ||
}) : super( | ||
style: DSHeadlineExtraLargeTextStyle( | ||
color: color, | ||
overflow: overflow, | ||
fontWeight: fontWeight, | ||
fontStyle: fontStyle, | ||
height: height, | ||
), | ||
); | ||
|
||
DSHeadlineExtraLargeText.rich( | ||
super.textSpan, { | ||
super.key, | ||
super.color, | ||
super.linkColor, | ||
super.overflow, | ||
super.textAlign, | ||
super.maxLines, | ||
super.fontWeight = DSFontWeights.semiBold, | ||
super.fontStyle, | ||
super.shouldLinkify, | ||
super.isSelectable, | ||
super.height = 1.25, | ||
}) : super.rich( | ||
style: DSHeadlineExtraLargeTextStyle( | ||
color: color, | ||
overflow: overflow, | ||
fontWeight: fontWeight, | ||
fontStyle: fontStyle, | ||
height: height, | ||
), | ||
); | ||
} |
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
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
34 changes: 34 additions & 0 deletions
34
sample/lib/widgets/showcase/sample_user_avatar.showcas.dart
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 |
---|---|---|
@@ -0,0 +1,34 @@ | ||
import 'package:blip_ds/blip_ds.dart'; | ||
import 'package:flutter/material.dart'; | ||
|
||
class SampleUserAvatarShowcase extends StatelessWidget { | ||
const SampleUserAvatarShowcase({Key? key}) : super(key: key); | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
return Column( | ||
children: [ | ||
DSUserAvatar( | ||
text: "Adriano Chamon Tavares", | ||
), | ||
const SizedBox( | ||
height: 15, | ||
), | ||
DSUserAvatar( | ||
text: "Adriano Chamon Tavares", | ||
textStyle: const DSHeadlineLargeTextStyle(), | ||
), | ||
const SizedBox( | ||
height: 15, | ||
), | ||
DSUserAvatar( | ||
text: "Adriano Chamon Tavares", | ||
textStyle: const DSHeadlineExtraLargeTextStyle(), | ||
), | ||
const SizedBox( | ||
height: 15, | ||
), | ||
], | ||
); | ||
} | ||
} |