Created
March 4, 2019 18:49
-
-
Save HansMuller/5e601218095038da6b471623020aa565 to your computer and use it in GitHub Desktop.
This file contains hidden or 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'; | |
class HomePage extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return new Scaffold( | |
body: new Container( | |
alignment: Alignment.center, | |
padding: const EdgeInsets.all(16.0), | |
child: new TextFormField( | |
decoration: new InputDecoration( | |
labelText: 'label', | |
enabledBorder: const OutlineInputBorder( | |
borderSide: const BorderSide(color: Colors.orange), | |
), | |
focusedBorder: const OutlineInputBorder( | |
borderSide: const BorderSide(color: Colors.blue), | |
) , | |
border: OutlineInputBorder(), | |
), | |
), | |
), | |
); | |
} | |
} | |
void main() { | |
runApp(new MaterialApp(home: new HomePage())); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment