Skip to content

Instantly share code, notes, and snippets.

@rydmike
Last active November 4, 2020 21:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rydmike/c3a564c9348f325a526350aea32110bf to your computer and use it in GitHub Desktop.
Save rydmike/c3a564c9348f325a526350aea32110bf to your computer and use it in GitHub Desktop.
Sample code for Flutter issue https://github.com/flutter/flutter/issues/48099
import 'package:flutter/material.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) => MaterialApp(
debugShowCheckedModeBanner: false,
home: MyHomePage(),
);
}
class MyHomePage extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Scaffold(
body: Center(
child: Padding(
padding: EdgeInsets.all(20),
child: TextFormField(
initialValue: "Abcdefgh1234",
enableInteractiveSelection: false,
readOnly: false,
),
),
),
);
}
}
@rydmike
Copy link
Author

rydmike commented Nov 4, 2020

This is an additional sample for Flutter flutter/flutter#48099 issue so I can provide it as link and with a DartPad to run.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment