platform_text 0.2.0 platform_text: ^0.2.0 copied to clipboard
A Flutter package to make your text selectable for web and non-selectable for native builds.
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!'),
),
),
);
}
}