Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save HansMuller/7b9c44ee67e9fa260678f423af6350bd to your computer and use it in GitHub Desktop.
Save HansMuller/7b9c44ee67e9fa260678f423af6350bd to your computer and use it in GitHub Desktop.
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