// import 'package:animate_do/animate_do.dart';
// import 'package:flutter/material.dart';
// import 'package:flutter_pagewise/flutter_pagewise.dart';
// import 'package:flutter_svg/flutter_svg.dart';
// import 'package:get/get.dart';
// import 'package:flutter_screenutil/flutter_screenutil.dart';
// import '../../app.dart';

// class SubcategoryPage extends GetView<SubcategoryController> {
//   @override
//   Widget build(BuildContext context) {
//     final CategoryModel category = Get.arguments;
//     final Size mqData = MediaQuery.of(context).size;
//     final double itemHeight = mqData.height * 0.37; // min on small device is 0.37
//     final double itemWidth = mqData.width / 2;
//     return SafeArea(
//       top: false,
//       child: Scaffold(
//         appBar: CustomAppbarWidget(
//           leading: AppBarBackBtn(),
//         ),
//         body: Padding(
//           padding: EdgeInsets.symmetric(horizontal: 16.w),
//           child: Column(
//             crossAxisAlignment: CrossAxisAlignment.start,
//             children: [
//               AppTheme.appSizeDivider20H,
//               Text(category.name, style: AppTheme.headerStyle),
//               SizedBox(height: 10),
//               AppTheme.appColorDivider,
//               SizedBox(height: 20),
//               Row(
//                 mainAxisAlignment: MainAxisAlignment.spaceBetween,
//                 children: [
//                   SvgPicture.asset('assets/category/filter.svg', height: 20.h, width: 20.w),
//                   SvgPicture.asset('assets/category/sort.svg', height: 20.h, width: 20.w),
//                 ],
//               ),
//               SizedBox(height: 20),
//               Expanded(
//                 child: RefreshIndicator(
//                   onRefresh: () => controller.fetchProducts(0),
//                   color: ThemeColor.mainColor,
//                   child: PagewiseGridView<ProductModel>.count(
//                     pageSize: 10,
//                     shrinkWrap: true,
//                     crossAxisCount: 2,
//                     mainAxisSpacing: 16.0,
//                     crossAxisSpacing: 16.0,
//                     childAspectRatio: itemWidth / itemHeight,
//                     pageFuture: (pageIndex) => controller.fetchProducts(pageIndex!),
//                     // loadingBuilder: (context) => LoadingPage(),
//                     itemBuilder: (context, entry, index) => FadeInUp(child: ProductCard(model: entry, elevation: 0.4)),
//                     // noItemsFoundBuilder: (context) => noItemsFoundBuilder(currLang),
//                     // retryBuilder: (context, callback) => retryBuilder(callback),
//                   ),
//                 ),
//               ),
//             ],
//           ),
//         ),
//       ),
//     );
//   }
// }
