import 'package:flutter/material.dart'; import 'package:font_awesome_flutter/font_awesome_flutter.dart'; import '../cart-order-page.dart'; import 'CustomIcon.dart'; class ProductAppBar extends StatelessWidget with PreferredSizeWidget { @override Widget build(BuildContext context) { return Container( color: Colors.white, child: Column( children: [ SizedBox( height: 30, ), Row( mainAxisAlignment: MainAxisAlignment.spaceBetween, children: [ Row( children: [ IconWithBg( icon: Icons.arrow_back_ios, color: Colors.grey, onPress: () { Navigator.pop(context); }, ), ], ), Row( children: [ IconWithBg( icon: Icons.shopping_cart, color: Colors.grey, onPress: () { Navigator.push( context, MaterialPageRoute( builder: (context) => CartOrderPage()), ); }), IconWithBg( icon: FontAwesomeIcons.ellipsisV, color: Colors.grey, onPress: () { //TODO Elham* // settingModalBottomSheet(context); }, ), ], ) ], ), ], ), ); } @override // TODO: implement preferredSize @override Size get preferredSize => Size(double.maxFinite, 50); }