proxibuy_bussiness/lib/presentation/widgets/custom_app_bar_single.dart

55 lines
1.7 KiB
Dart

import 'package:business_panel/core/config/app_colors.dart';
import 'package:business_panel/gen/assets.gen.dart';
import 'package:business_panel/presentation/home/bloc/home_bloc.dart';
import 'package:business_panel/presentation/pages/discount_manegment_page.dart';
import 'package:flutter/material.dart';
import 'package:flutter_bloc/flutter_bloc.dart';
import 'package:flutter_svg/flutter_svg.dart';
class CustomAppBarSingle extends StatelessWidget implements PreferredSizeWidget {
String page = "";
CustomAppBarSingle({super.key,required this.page});
@override
Widget build(BuildContext context) {
return Container(
decoration: BoxDecoration(
color: Colors.white,
borderRadius: const BorderRadius.vertical(bottom: Radius.circular(15)),
boxShadow: [
BoxShadow(
color: Colors.black.withOpacity(0.08),
blurRadius: 10,
offset: const Offset(0, 4),
),
],
),
child: SafeArea(
child: Padding(
padding: EdgeInsets.all(8),
child: Row(
mainAxisAlignment: MainAxisAlignment.end,
children: [
Text("مدیریت $page",style: TextStyle(fontSize: 15)),
SizedBox(width: 15,),
InkWell(
onTap: () {
Navigator.pop(context);
},
child: Padding(
padding: const EdgeInsets.all(8.0),
child: SvgPicture.asset(Assets.icons.arrowLeft),
),
)
],
),
),
),
);
}
@override
Size get preferredSize => const Size.fromHeight(70.0);
}