custom_text 1.4.3 copy "custom_text: ^1.4.3" to clipboard
custom_text: ^1.4.3 copied to clipboard

Highly customisable text widget and controller to enable styling and gesture actions.

example/lib/main.dart

import 'package:flutter/material.dart';

import 'package:custom_text_example/common/device_info.dart';
import 'package:custom_text_example/common/router.dart';

Future<void> main() async {
  WidgetsFlutterBinding.ensureInitialized();
  await DeviceInfo.checkIosSimulator();
  runApp(const App());
}

class App extends StatelessWidget {
  const App();

  @override
  Widget build(BuildContext context) {
    return MaterialApp.router(
      title: 'CustomText Demo',
      theme: ThemeData(
        useMaterial3: false,
        colorScheme: ColorScheme.fromSwatch(
          primarySwatch: Colors.blueGrey,
        ).copyWith(primary: Colors.grey.shade800),
        textTheme: const TextTheme(
          bodyLarge: TextStyle(fontWeight: FontWeight.normal, height: 1.2),
          bodyMedium: TextStyle(fontSize: 18.0, height: 1.5),
        ),
        inputDecorationTheme: const InputDecorationTheme(
          border: OutlineInputBorder(),
          focusedBorder: OutlineInputBorder(
            borderSide: BorderSide(
              color: Colors.blueGrey,
              width: 1.6,
            ),
          ),
        ),
      ),
      routeInformationProvider: router.routeInformationProvider,
      routeInformationParser: router.routeInformationParser,
      routerDelegate: router.routerDelegate,
    );
  }
}
105
likes
0
pub points
85%
popularity

Publisher

verified publisherkaboc.cc

Highly customisable text widget and controller to enable styling and gesture actions.

Repository (GitHub)
View/report issues

Topics

#text

License

unknown (license)

Dependencies

flutter, meta, text_parser

More

Packages that depend on custom_text