Skip to content

Instantly share code, notes, and snippets.

@victor-carv
Last active August 9, 2022 17:59
Show Gist options
  • Save victor-carv/b80599ccac7e318d9404990d1b5244aa to your computer and use it in GitHub Desktop.
Save victor-carv/b80599ccac7e318d9404990d1b5244aa to your computer and use it in GitHub Desktop.
ensorcelled-gorge-9177

ensorcelled-gorge-9177

Created with <3 with dartpad.dev.

import 'package:flutter/material.dart';
void main() => runApp(const MyApp());
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
const appTitle = 'Form Styling Demo';
return MaterialApp(
title: appTitle,
home: Scaffold(
appBar: AppBar(
title: const Text(appTitle),
),
body: const MyCustomForm(),
),
);
}
}
class MyCustomForm extends StatelessWidget {
const MyCustomForm({super.key});
@override
Widget build(BuildContext context) {
return Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: <Widget>[
const Padding(
padding: EdgeInsets.symmetric(horizontal: 8, vertical: 16),
child: TextField(
decoration: InputDecoration(
border: OutlineInputBorder(),
hintText: '[email protected]',
labelText: "Enter your username",
),
),
),
],
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment