custom_appbar.dart 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. import 'package:flutter/material.dart';
  2. class CustomAppbar extends StatefulWidget {
  3. const CustomAppbar({super.key});
  4. @override
  5. State<CustomAppbar> createState() => _CustomAppbarState();
  6. }
  7. class _CustomAppbarState extends State<CustomAppbar> {
  8. @override
  9. Widget build(BuildContext context) {
  10. return Row(
  11. children: [
  12. Image.asset(
  13. 'assets/logo.png',
  14. height: 40,
  15. ),
  16. const SizedBox(width: 10),
  17. const SizedBox(width: 10),
  18. DropdownButton(
  19. hint: const Text(
  20. "Mesas Interiores",
  21. style:
  22. TextStyle(color: Colors.black, fontWeight: FontWeight.bold),
  23. ),
  24. icon: const Icon(Icons.arrow_drop_down),
  25. items: const [
  26. DropdownMenuItem(
  27. value: "ES",
  28. child: Text("Palomeras"),
  29. ),
  30. DropdownMenuItem(
  31. value: "EN",
  32. child: Text("Sombrillera"),
  33. ),
  34. ],
  35. onChanged: (e) => {})
  36. ],
  37. );
  38. }
  39. }