Created
March 15, 2023 15:31
-
-
Save DemianRamirezR/5dfb4a58bb85ddc0c553af22fe96e2c3 to your computer and use it in GitHub Desktop.
Propiedades de AppBar
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/material.dart'; | |
void main() => runApp(MyApp()); | |
class MyApp extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return MaterialApp( | |
title: 'Flutter practica', | |
debugShowCheckedModeBanner: false, | |
home: Scaffold( | |
appBar: AppBar( | |
centerTitle: true, | |
automaticallyImplyLeading: true, | |
title: const Text("Flutter AppBar Example"), | |
actions: [ | |
IconButton( | |
icon: const Icon(Icons.search), | |
onPressed: () { | |
}, | |
), | |
IconButton( | |
icon: const Icon(Icons.more_vert,), | |
onPressed: () { | |
}, | |
) | |
], | |
shape: const StadiumBorder(), | |
shadowColor: Colors.cyanAccent, | |
elevation: 10, | |
backgroundColor: Colors.deepPurpleAccent, | |
), | |
drawer: const Drawer(), | |
body: const Center(child: Text("Ramirez Ramirez Jose Demian")), // Body | |
), // Scaffold | |
); // Material App | |
} // Widgets | |
} // Mi aplicacion |
Author
DemianRamirezR
commented
Mar 15, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment