Skip to content

Instantly share code, notes, and snippets.

@DemianRamirezR
Created March 15, 2023 15:31
Show Gist options
  • Save DemianRamirezR/5dfb4a58bb85ddc0c553af22fe96e2c3 to your computer and use it in GitHub Desktop.
Save DemianRamirezR/5dfb4a58bb85ddc0c553af22fe96e2c3 to your computer and use it in GitHub Desktop.
Propiedades de AppBar
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
@DemianRamirezR
Copy link
Author

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment