add listView year dropdown

This commit is contained in:
2026-01-26 15:23:13 +01:00
parent 3990a8a34e
commit 78e27ac8d0
4 changed files with 73 additions and 3 deletions

View File

@@ -1,6 +1,7 @@
import 'package:flutter/material.dart';
import 'package:get/get.dart';
import '../controller/home_controller.dart';
import '../widgets/my_drop_down_year_widget.dart';
import '../widgets/my_styled_loading_indicator.dart';
class HomePage extends GetView<HomeController> {
@@ -15,9 +16,33 @@ class HomePage extends GetView<HomeController> {
child: SafeArea(
child: Scaffold(
appBar: AppBar(
toolbarHeight: 100,
backgroundColor: Colors.blueGrey,
foregroundColor: Colors.white,
title: const Text('Tank List'),
title: Column(
children: [
const Text('Tank List'),
Container(
padding: const EdgeInsets.symmetric(horizontal: 18),
decoration: BoxDecoration(
color: Colors.blue.shade700,
borderRadius: BorderRadius.circular(8),
border: Border.all(color: Colors.white, width: 2),
boxShadow: [
BoxShadow(
color: Colors.white.withAlpha(120),
spreadRadius: 1,
blurRadius: 2,
offset: const Offset(0, 3),
),
],
),
width: 150,
height: 50,
child: MyDropDownYear(homCtrl: homCtrl),
),
],
),
centerTitle: true,
actions: [
IconButton(