Flutter is a free tool made by Google that helps people build apps that look nice and work well. You can use it to make apps for phones, websites, and computers all at once. Flutter is popular because it lets you see your changes right away, so you can make your app better quickly. It uses a programming language called Dart, which is easy to learn. Flutter also has lots of ready-made things you can use to make your app look good and work right.
Certainly! Here’s an example of a Flutter program that creates a “Contact Us” page with dummy contact information
import 'package:flutter/material.dart'; void main() => runApp(MyApp()); class MyApp extends StatelessWidget { @override Widget build(BuildContext context) { return MaterialApp( title: 'Contact Us', theme: ThemeData( primarySwatch: Colors.blue, ), home: ContactUsScreen(), ); } } class ContactUsScreen extends StatelessWidget { @override Widget build(BuildContext context) { return Scaffold( appBar: AppBar( title: Text('Contact Us'), ), body: Padding( padding: EdgeInsets.all(16.0), child: Column( crossAxisAlignment: CrossAxisAlignment.start, children: [ Text( 'Contact Information', style: TextStyle( fontSize: 24.0, fontWeight: FontWeight.bold, ), ), SizedBox(height: 16.0), ListTile( leading: Icon(Icons.email), title: Text('Email'), subtitle: Text('info@example.com'), ), ListTile( leading: Icon(Icons.phone), title: Text('Phone'), subtitle: Text('+1 123 456 7890'), ), ListTile( leading: Icon(Icons.location_on), title: Text('Address'), subtitle: Text('123 Main St, City, Country'), ), ], ), ), ); } }
In this example, we create a ContactUsScreen
widget that represents the “Contact Us” page. The page displays contact information such as email, phone number, and address using ListTile
widgets.
The Column
widget is used to arrange the content vertically. Inside the column, we have a Text
widget for the heading “Contact Information” and multiple ListTile
widgets for each contact detail.
Each ListTile
has a leading Icon
to represent the type of contact information (email, phone, address), a title Text
widget for the contact detail label, and a subtitle Text
widget for the dummy contact information.
Feel free to modify the contact information and styling according to your specific requirements.