Last active
November 4, 2020 21:14
-
-
Save rydmike/c3a564c9348f325a526350aea32110bf to your computer and use it in GitHub Desktop.
Sample code for Flutter issue https://github.com/flutter/flutter/issues/48099
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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, | |
), | |
), | |
), | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is an additional sample for Flutter flutter/flutter#48099 issue so I can provide it as link and with a DartPad to run.