Created
March 5, 2019 17:42
-
-
Save HansMuller/7b9c44ee67e9fa260678f423af6350bd to your computer and use it in GitHub Desktop.
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'; | |
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: OutlineInputBorder( | |
borderSide: BorderSide(color: Colors.orange), | |
borderRadius: BorderRadius.circular(30), | |
), | |
focusedBorder: OutlineInputBorder( | |
borderSide: BorderSide(color: Colors.blue), | |
borderRadius: BorderRadius.circular(30), | |
), | |
border: OutlineInputBorder( | |
borderRadius: BorderRadius.circular(30), | |
), | |
), | |
), | |
), | |
); | |
} | |
} | |
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