You are on page 1of 2

Ex.

No: 3
STYLISH TEXT APP
Date: 13.9.23

Aim:
To create a new Flutter project called "StylishTextApp." In the main screen of
the app, use a Scaffold to create the basic app structure, including an AppBar with a
title. Inside the body of the Scaffold, create a Container Widget. Within the
Container, design a stylish and visually appealing text display. You can experiment
with different text styles, fonts, colors, and alignments to make the text look
impressive. Ensure that the text displayed inside the Container is immutable. Test the
app on an emulator or physical device to make sure it functions as expected.

Program Code:
import 'package:flutter/material.dart';

void main(){
runApp(new MaterialApp(home: new texapp(),));
}

class texapp extends StatelessWidget {


const texapp({super.key});

@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
leading: IconButton(icon: Icon(Icons.menu),onPressed: ()=>{},),
title: Text("Stylish Text App",),
actions: [
IconButton(icon: Icon(Icons.search),onPressed: ()=>{},),
],
),

body: Center(child: Align(alignment: Alignment.center, child: Container(


child: Padding(padding: EdgeInsets.all(300.0),

1
child: Text("KAVIYARASU", style: TextStyle(color:
Color.fromARGB(255, 43, 10, 159),fontSize: 70, fontFamily: 'Arial', fontWeight:
FontWeight.bold, fontStyle:FontStyle.italic, decoration:
TextDecoration.underline,letterSpacing: 1.0 ),),),
),),)

);
}
}

Output:

Result:
The Stylish Text App with different font styles, font colors, font size, font
family, font weight, etc... has been implemented successfully.

You might also like