TEXT
87
Day3
Guest on 23rd June 2022 05:34:44 PM
import 'package:flutter/material.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
return MaterialApp(
debugShowCheckedModeBanner: false,
home: HomePAge(),
);
}
}
class HomePAge extends StatefulWidget {
const HomePAge({Key? key}) : super(key: key);
@override
State<HomePAge> createState() => _HomePAgeState();
}
class _HomePAgeState extends State<HomePAge> {
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
centerTitle: true,
backgroundColor: Colors.green,
leading: Icon(Icons.menu),
title: Text(
"SHISHIR",
style: TextStyle(
color: Colors.red,
fontWeight: FontWeight.bold,
letterSpacing: 12,
),
),
actions: [Icon(Icons.search)],
),
);
}
}