bootstrap_typography2 1.2.2 bootstrap_typography2: ^1.2.2 copied to clipboard
Bootstrap typography, size text based on screen size, uses bootstrap values in pixels
import 'package:flutter/material.dart';
import 'package:flutter/cupertino.dart';
import 'package:bootstrap_typography2/bootstrap_typography2.dart';
void main() {
runApp(
MaterialApp(
home: Scaffold(
body: Column(
crossAxisAlignment: CrossAxisAlignment.stretch,
children: [
H1(
BSTextParams("H1"),
),
H2(
BSTextParams("H2"),
),
H3(
BSTextParams("H3"),
),
H4(
BSTextParams("H4"),
),
H5(
BSTextParams("H5"),
),
H6(
BSTextParams("H6"),
),
P(
BSTextParams("P"),
),
H2(
BSTextParams(
"Custom",
textSizeSmall: 16,
textSizeLarge: 82,
),
),
],
),
),
),
);
}