format_label 2.0.1 copy "format_label: ^2.0.1" to clipboard
format_label: ^2.0.1 copied to clipboard

A Flutter package that allow to have a bold and normal font weight in a same line, like a title-description format.

example/main.dart

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

void main() => runApp(const MyApp());

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return const MaterialApp(
      title: 'Format Text',
      home: Scaffold(
        body: Center(
          child: FormatLabel(
            mainText: 'Animals:',
            description: 'Dog, cat, duck, hippo, bird, tiger',
            mainTextStyle: TextStyle(
                fontSize: 14, fontWeight: FontWeight.w700, color: Colors.red),
            descriptionTextStyle: TextStyle(
                fontSize: 14, fontWeight: FontWeight.w300, color: Colors.teal),
          ),
        ),
      ),
    );
  }
}
4
likes
160
pub points
30%
popularity

Publisher

unverified uploader

A Flutter package that allow to have a bold and normal font weight in a same line, like a title-description format.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on format_label