Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save HansMuller/5e601218095038da6b471623020aa565 to your computer and use it in GitHub Desktop.
Save HansMuller/5e601218095038da6b471623020aa565 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: 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