read_more_codespark 0.0.11 copy "read_more_codespark: ^0.0.11" to clipboard
read_more_codespark: ^0.0.11 copied to clipboard

Tired of truncated text? read_more_codespark offers a simple and customizable solution for displaying expandable text in your Flutter projects.

example/main.dart

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

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

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

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Simple ReadMoreText Demo',
      home: Scaffold(
        appBar: AppBar(title: const Text('ReadMoreText Example')),
        body: const Padding(
          padding: EdgeInsets.all(16.0),
          child: SimpleReadMoreText(
            text:
                'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer nec odio. '
                'Praesent libero. Sed cursus ante dapibus diam. Sed nisi. Nulla quis sem at nibh elementum imperdiet.',
            trimLines: 2,
            style: TextStyle(fontSize: 16),
            readMoreStyle: TextStyle(color: Colors.blue),
            readLessStyle: TextStyle(color: Colors.red),
            iconToggle: true,
            iconColor: Colors.grey,
            animationType: AnimationType.size,
          ),
        ),
      ),
    );
  }
}
6
likes
140
points
59
downloads
screenshot

Publisher

verified publisherksaikiran.tech

Weekly Downloads

Tired of truncated text? read_more_codespark offers a simple and customizable solution for displaying expandable text in your Flutter projects.

Repository (GitHub)
View/report issues

Documentation

API reference

License

unknown (license)

Dependencies

flutter

More

Packages that depend on read_more_codespark