platform_text 0.2.0 copy "platform_text: ^0.2.0" to clipboard
platform_text: ^0.2.0 copied to clipboard

A Flutter package to make your text selectable for web and non-selectable for native builds.

example/main.dart

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

void main(List<String> args) {
  runApp(const MyApp());
}

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

  @override
  Widget build(BuildContext context) {
    return const MaterialApp(
      home: Scaffold(
        body: Center(
          child: PlatformText('Hello Mom!'),
        ),
      ),
    );
  }
}
7
likes
120
pub points
0%
popularity

Publisher

verified publisherrozpo.dev

A Flutter package to make your text selectable for web and non-selectable for native builds.

Homepage

Documentation

API reference

License

BSD-3-Clause (LICENSE)

Dependencies

flutter

More

Packages that depend on platform_text