Contact Page

Loading preview

Starting the Flutter app

A showcase of Flutter's contact page functionality

Get the source

Add it to your project

Copies the Dart source into your app, so you own it. Flutter SDK only, no extra packages.

First time? Run dart pub global activate fluttertemplates_dev, or read the CLI guide.

How it works

Four TextFields and a FilledButton sit in a plain Column, with email and phone ListTiles underneath. There are no controllers, no validation and no submit logic, so Send Message only shows a demo SnackBar and typed text is never read. The Column also isn’t scrollable, which means the layout will overflow once the keyboard opens on a short screen.

Adapting it

  • Wrap the body in a SingleChildScrollView, then a Form, and convert each TextField to a validated TextFormField.
  • Post the values to your backend from the FilledButton callback.
  • Use url_launcher in the ListTile onTap handlers for mailto: and tel: links.