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
130
pub points
0%
popularity

Publisher

verified publisherzippa.pizza

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

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on resolve_font_height