extended_text 14.2.0 copy "extended_text: ^14.2.0" to clipboard
extended_text: ^14.2.0 copied to clipboard

Extended official text to build special text like inline image or @somebody quickly,it also support custom background,custom over flow,gradient and custom selection toolbar and handles.

example/lib/main.dart

import 'package:ff_annotation_route_library/ff_annotation_route_library.dart';
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
import 'package:oktoast/oktoast.dart';
import 'example_route.dart';
import 'example_routes.dart';

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

class MyApp extends StatelessWidget {
  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return OKToast(
        child: MaterialApp(
      title: 'ExtendedText',
      debugShowCheckedModeBanner: false,
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      builder: (BuildContext c, Widget? w) {
        // ScreenUtil.instance =
        //     ScreenUtil(width: 750, height: 1334, allowFontScaling: true)
        //       ..init(c);
        if (!kIsWeb) {
          final MediaQueryData data = MediaQuery.of(c);
          return MediaQuery(
            data: data.copyWith(textScaler: TextScaler.noScaling),
            child: w!,
          );
        }
        return w!;
      },
      initialRoute: Routes.fluttercandiesMainpage,
      onGenerateRoute: (RouteSettings settings) {
        return onGenerateRoute(
          settings: settings,
          getRouteSettings: getRouteSettings,
        );
      },
    ));
  }
}

List<String>? _imageTestUrls;
List<String> get imageTestUrls =>
    _imageTestUrls ??
    <String>['https://photo.tuchong.com/4870004/f/298584322.jpg'];
280
likes
130
points
250k
downloads

Publisher

verified publisherfluttercandies.com

Weekly Downloads

Extended official text to build special text like inline image or @somebody quickly,it also support custom background,custom over flow,gradient and custom selection toolbar and handles.

Repository (GitHub)
View/report issues

Topics

#extended-text #custom-text-overflow #gradient-text

Documentation

API reference

License

MIT (license)

Dependencies

extended_text_library, flutter

More

Packages that depend on extended_text