store

 avatar
unknown
plain_text
2 years ago
6.9 kB
24
Indexable
// import 'package:carousel_slider/carousel_slider.dart';
// import 'package:flutter/material.dart';
// import 'package:get/get.dart';
// import 'package:sizer/sizer.dart';
// import 'package:smartbutler/app/modules/store/controllers/store_controller.dart';
// import 'package:smartbutler/utils/colors.dart';
// import 'package:smartbutler/utils/sizeconfig.dart';
// import 'package:smartbutler/utils/textstyle.dart';
// import 'package:smartbutler/utils/widgets/common_appbar.dart';
//
// class StoreView extends GetView<StoreController> {
//   const StoreView({Key? key}) : super(key: key);
//
//   @override
//   Widget build(BuildContext context) {
//     return GetBuilder<StoreController>(
//         init: StoreController(),
//         builder: (controller) {
//           return Scaffold(
//             appBar: CommonAppBar(
//               text: 'store'.tr,
//               kIsBackVisibility: false,
//               color: orange,
//             ),
//             body: SingleChildScrollView(
//               child: Column(
//                 crossAxisAlignment: CrossAxisAlignment.start,
//                 mainAxisSize: MainAxisSize.max,
//                 children: [
//                   Padding(
//                     padding: const EdgeInsets.symmetric(horizontal: 40),
//                     child: Container(
//                       margin: const EdgeInsets.only(top: 30),
//                       width: Responsive.width! * 100.sp,
//                       height: Responsive.height! * 5.sp,
//                       decoration: BoxDecoration(
//                           border: Border.all(color: orange.withOpacity(.8)),
//                           color: orange.withOpacity(.05),
//                           borderRadius:
//                               const BorderRadius.all(Radius.circular(10)),),
//                       child: Padding(
//                         padding: const EdgeInsets.symmetric(horizontal: 20),
//                         child: Row(
//                           mainAxisAlignment: MainAxisAlignment.spaceBetween,
//                           children: [
//                             Text(
//                               'points_balance'.tr,
//                               style: AppStyle.montserrat().copyWith(
//                                   fontSize: 15,
//                                   color: orange.withOpacity(.8),
//                                   fontWeight: FontWeight.w500,),
//                             ),
//                             Text(
//                               "05",
//                               style: AppStyle.montserrat().copyWith(
//                                   fontSize: 15,
//                                   color: orange.withOpacity(.8),
//                                   fontWeight: FontWeight.w600,),
//                             ),
//                           ],
//                         ),
//                       ),
//                     ),
//                   ),
//                   CarouselSlider(
//                     items: [
//                       CustomButton(
//                         price: '\$9.99',
//                         onTap: () {},
//                         description: 'All kits included Unlimited Download iso support',
//                         validDays: '30 days free trail',
//                         color: purple,
//                       ),
//                     CustomButton(
//                       price: '\$9.99',
//                       onTap: () {},
//                       description: 'All kits included Unlimited Download iso support',
//                       validDays: '30 days free trail',
//                       color: blue,
//                     ),
//                     CustomButton(
//                       price: '\$9.99',
//                       onTap: () {},
//                       description: 'All kits included Unlimited Download iso support',
//                       validDays: '30 days free trail',
//                       color:  orange,
//                     ),
//                     ],
//                     options: CarouselOptions(
//                       enlargeCenterPage: true,
//                       height: Responsive.height! * 60,
//                       autoPlay: false,
//
//                     ),
//                   ),
//                 ],
//               ),
//             ),
//           );
//         },);
//   }
// }
//
// class CustomButton extends StatelessWidget {
//   final String? price;
//   final String? description;
//   final String? validDays;
//   final VoidCallback? onTap;
//   final Color color;
//
//   const CustomButton({Key? key, this.price, this.onTap, this.description, this.validDays, required this.color}) : super(key: key);
//
//   @override
//   Widget build(BuildContext context) {
//     return Stack(
//       alignment: Alignment.bottomCenter,
//       children: [
//         Container(
//           margin: const EdgeInsets.symmetric(vertical: 21,horizontal: 5),
//           height: Responsive.height! * 50,
//           decoration: BoxDecoration(
//               color:  color.withOpacity(.04),
//               borderRadius: BorderRadius.circular(15),
//               border: Border.all(color: color),),
//           child: Padding(
//             padding: const EdgeInsets.symmetric(vertical: 70),
//             child: Column(mainAxisAlignment: MainAxisAlignment.spaceBetween,
//               children: [
//                 Text(
//                   price!.toString(),
//                   style: AppStyle.montserrat().copyWith(fontWeight: FontWeight.w400,fontSize: 45,color:  color,letterSpacing: 1.5),),
//                 Padding(
//                   padding:  const EdgeInsets.symmetric(horizontal: 40),
//                   child: Text(textAlign: TextAlign.center,
//                     description!.toString(),
//                     style: AppStyle.montserrat().copyWith(fontWeight: FontWeight.w500,fontSize: 17,color:  color,letterSpacing: 1),),
//                 ),
//                 Text(
//                   validDays!.toString(),
//                   style: AppStyle.montserrat().copyWith(fontWeight: FontWeight.w600,fontSize: 19,color:  color,letterSpacing: 1),),
//               ],
//             ),
//           ),
//         ),
//         GestureDetector(onTap: onTap,
//           child: Container(alignment: Alignment.center,
//             height: Responsive.height! * 6,
//             width: Responsive.width! * 35,
//             decoration: BoxDecoration(
//                 color:  color,
//                 borderRadius: BorderRadius.circular(50),),
//             child:  Text("Buy Now",style: AppStyle.montserrat().copyWith(fontWeight: FontWeight.w600,fontSize: 18,color: Colors.white)),
//           ),
//         ),
//       ],
//     );
//   }
// }

// ignore_for_file: depend_on_referenced_packages
Editor is loading...