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

This flutter widget is created for commonly used rich text widget.

example/lib/main.dart

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

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

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

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Common Rich text Demo',
      debugShowCheckedModeBanner: false,
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: const DemoScreen(),
    );
  }
}

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

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(title: const Text("Common Rich text Demo"),),
      body: Center(
        child: RichTextWidget(
          text: "Title",
          requiredText: "*",
          fontWeight: FontWeight.bold,
        ),
      ),
    );
  }
}
2
likes
140
points
24
downloads

Publisher

unverified uploader

Weekly Downloads

This flutter widget is created for commonly used rich text widget.

Repository (GitHub)

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on common_rich_text