feat:Baskets empty page ui done
This commit is contained in:
@@ -1,3 +1,6 @@
|
||||
import 'package:food_delivery_client/feature/basket/presentation/pages/basket_page/widgets/w_basket_empty.dart';
|
||||
import 'package:food_delivery_client/feature/basket/presentation/pages/basket_page/widgets/w_basket_header.dart';
|
||||
|
||||
import '../../../../../food_delivery_client.dart';
|
||||
|
||||
class BasketPage extends StatelessWidget {
|
||||
@@ -6,7 +9,9 @@ class BasketPage extends StatelessWidget {
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return WLayout(
|
||||
child: Scaffold(body: Center(child: Text(context.loc.useYourTAxiAccount))),
|
||||
child: Scaffold(body: Column(children: [
|
||||
WBasketHeader(),
|
||||
WBasketEmpty()])),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,46 @@
|
||||
import '../../../../../../food_delivery_client.dart';
|
||||
|
||||
class WBasketEmpty extends StatelessWidget {
|
||||
const WBasketEmpty({super.key});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return BlocBuilder<MainBloc, MainState>(
|
||||
builder: (context, state) {
|
||||
return Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.center,
|
||||
mainAxisAlignment: MainAxisAlignment.start,
|
||||
children: [
|
||||
70.verticalSpace,
|
||||
SvgPicture.asset(AppIcons.icEmptyBasket),
|
||||
Text(
|
||||
context.loc.addItemsStartBasket,
|
||||
textAlign: TextAlign.center,
|
||||
style: AppTextStyles.size20Medium,
|
||||
),
|
||||
12.verticalSpace,
|
||||
Text(
|
||||
context.loc.basketHint,
|
||||
textAlign: TextAlign.center,
|
||||
style: AppTextStyles.size16Regular.copyWith(
|
||||
color: AppColors.c545454,
|
||||
height: 24 / 16,
|
||||
),
|
||||
),
|
||||
38.verticalSpace,
|
||||
AppButton(
|
||||
name: context.loc.startShopping,
|
||||
onPressed: () {
|
||||
context.read<MainBloc>().add(MainEvent.loaded(0));
|
||||
},
|
||||
height: 45,
|
||||
width: 250,
|
||||
|
||||
borderRadius: 99,
|
||||
),
|
||||
],
|
||||
);
|
||||
},
|
||||
).paddingSymmetric(horizontal: 35);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,44 @@
|
||||
import '../../../../../../food_delivery_client.dart';
|
||||
|
||||
class WBasketHeader extends StatelessWidget {
|
||||
const WBasketHeader({super.key});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Column(
|
||||
mainAxisSize: MainAxisSize.max,
|
||||
children: [
|
||||
Align(
|
||||
alignment: AlignmentGeometry.centerRight,
|
||||
child: InkWell(
|
||||
borderRadius: BorderRadius.circular(99),
|
||||
onTap: () {},
|
||||
child: Ink(
|
||||
decoration: BoxDecoration(
|
||||
color: AppColors.cEEEEEE,
|
||||
borderRadius: BorderRadius.circular(99),
|
||||
),
|
||||
child: Row(
|
||||
spacing: 10,
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
children: [
|
||||
Image.asset(
|
||||
AppIcons.icOrders,
|
||||
height: 20,
|
||||
width: 20,
|
||||
fit: BoxFit.cover,
|
||||
),
|
||||
Text(context.loc.orders, style: AppTextStyles.size14Medium),
|
||||
],
|
||||
).paddingSymmetric(vertical: 10, horizontal: 16),
|
||||
),
|
||||
),
|
||||
),
|
||||
Align(
|
||||
alignment: AlignmentGeometry.centerLeft,
|
||||
child: Text(context.loc.cartsTitle, style: AppTextStyles.size36Bold),
|
||||
),
|
||||
],
|
||||
).paddingSymmetric(horizontal: 15);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user