Files
HiddingselAppOriginal/lib/appflow/view/widgets/app_bar.dart
2026-02-13 15:53:22 +01:00

47 lines
1.1 KiB
Dart

import 'package:flutter/material.dart';
import 'package:hiddingsel_app/constants/constant.dart';
import '../home.dart';
class HiddingselAppBar extends PreferredSize {
final Widget title;
HiddingselAppBar(this.title)
: super(child: title, preferredSize: Size.fromHeight(kToolbarHeight));
@override
Size get preferredSize => Size.fromHeight(88);
@override
Widget build(BuildContext context) => SafeArea(
child: Container(
height: preferredSize.height,
color: UIColors.white,
child: Column(
children: [
Flexible(
child: GestureDetector(
onTap: () {
Navigator.push(
context,
MaterialPageRoute(builder: (context) => Home()),
);
},
child: Image(
image: AssetImage(
'assets/other/appbar.png',
),
),
),
),
Divider(),
AppBar(
title: title,
backgroundColor: UIColors.grey6,
)
],
),
),
);
}