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, ) ], ), ), ); }