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

Project custom expanded text

example/lib/main.dart

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

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

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

  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
        useMaterial3: true,
      ),
      home: const MyHomePage(),
    );
  }
}

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

  @override
  Widget build(BuildContext context) {
    return const Scaffold(
        body: SafeArea(
      child: ExpandableTextCustom(
        showMore: true,
        textMore: "More",
        textLess: "Less",
        content:
            'Suppose you want to use some_package and another_package in an app, and both of these depend on url_launcher, but in different versions. That causes a potential conflict. The best way to avoid this is for package authors to use version ranges rather than specific versions when specifying dependencies',
      ),
    ));
  }
}
1
likes
130
points
36
downloads

Publisher

unverified uploader

Weekly Downloads

Project custom expanded text

Repository (GitLab)

Documentation

API reference

License

MIT (license)

Dependencies

flutter, flutter_svg

More

Packages that depend on expanded_text_custom