resolve_font_height 1.0.2 copy "resolve_font_height: ^1.0.2" to clipboard
resolve_font_height: ^1.0.2 copied to clipboard

Flutter package to get the default font's height based on the current build context.

example/main.dart

import 'package:flutter/material.dart';
import 'package:resolve_font_height/resolve_font_height.dart';

class App extends StatelessWidget {
  const App({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    final double height = resolveFontHeight(context);

    return SizedBox(
      height: height,
      child: const Text('Hello, World!'),
    );
  }
}
0
likes
150
points
51
downloads

Publisher

verified publisherzippa.pizza

Weekly Downloads

Flutter package to get the default font's height based on the current build context.

Repository (GitHub)

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on resolve_font_height