home_page.dart 1.03 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46
import 'package:flutter/material.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      debugShowCheckedModeBanner: false,
      title: 'Flutter Demo',
      theme: ThemeData(

        colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
        useMaterial3: true,
      ),
      home: myWidget(),
    );
  }
}

class myWidget extends StatelessWidget {
  const myWidget({super.key});

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      //child: Text("Hola mundo")
      appBar: AppBar( //Barra que se encuentra en la parte superior
        title: Text("hola mundo home page "),//Agregar titulo en appBar
        backgroundColor: Colors.lightBlue,//Agregar color en la appBar
        actions: const [//Agregar iconos
          Icon(Icons.search),
          Icon(Icons.menu)
        ],
      ),
      body: Column(children: []),//Va a tener varios hijos


    );

  }
}