heading_text_flutter 0.0.1 copy "heading_text_flutter: ^0.0.1" to clipboard
heading_text_flutter: ^0.0.1 copied to clipboard

A Flutter package that provides a widget for creating stylized headings using HTML-like tags.

example/lib/main.dart

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

void main() {
  runApp(const MyApp());
}

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

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
        useMaterial3: true,
      ),
      home: Scaffold(
        appBar: AppBar(
          centerTitle: true,
          title: const Text('Heading Text'),
        ),
        body: const Center(
          child: Column(
            mainAxisAlignment: MainAxisAlignment.center,
            children: [
              HeadingText(
                tag: 'h1',
                text: 'Sachin',
              ),
              HeadingText(
                tag: 'h2',
                text: 'Sachin',
              ),
              HeadingText(
                tag: 'h3',
                text: 'Sachin',
              ),
              HeadingText(
                tag: 'h4',
                text: 'Sachin',
              ),
              HeadingText(
                tag: 'h5',
                text: 'Sachin',
              ),
              HeadingText(
                tag: 'h6',
                text: 'Sachin',
              ),
            ],
          ),
        ),
      ),
    );
  }
}
1
likes
130
pub points
28%
popularity

Publisher

unverified uploader

A Flutter package that provides a widget for creating stylized headings using HTML-like tags.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on heading_text_flutter