TEXT   87

Day3

Guest on 23rd June 2022 05:34:44 PM

  1. import 'package:flutter/material.dart';
  2.  
  3. void main() {
  4.   runApp(const MyApp());
  5. }
  6.  
  7. class MyApp extends StatelessWidget {
  8.   const MyApp({Key? key}) : super(key: key);
  9.  
  10.   @override
  11.   Widget build(BuildContext context) {
  12.     return MaterialApp(
  13.       debugShowCheckedModeBanner: false,
  14.       home: HomePAge(),
  15.     );
  16.   }
  17. }
  18.  
  19. class HomePAge extends StatefulWidget {
  20.   const HomePAge({Key? key}) : super(key: key);
  21.  
  22.   @override
  23.   State<HomePAge> createState() => _HomePAgeState();
  24. }
  25.  
  26. class _HomePAgeState extends State<HomePAge> {
  27.   @override
  28.   Widget build(BuildContext context) {
  29.     return Scaffold(
  30.       appBar: AppBar(
  31.         centerTitle: true,
  32.         backgroundColor: Colors.green,
  33.         leading: Icon(Icons.menu),
  34.         title: Text(
  35.           "SHISHIR",
  36.           style: TextStyle(
  37.             color: Colors.red,
  38.             fontWeight: FontWeight.bold,
  39.             letterSpacing: 12,
  40.           ),
  41.         ),
  42.         actions: [Icon(Icons.search)],
  43.       ),
  44.     );
  45.   }
  46. }

Raw Paste


Login or Register to edit or fork this paste. It's free.