Procházet zdrojové kódy

Comnetario de producto se sigue mandando al actualizar y se quito botones de para crear y editar productos, categorias y mesas

OscarGil03 před 2 měsíci
rodič
revize
f6c0187522

+ 6 - 0
lib/models/producto_model.dart

@@ -21,6 +21,8 @@ class Producto extends Basico {
   List<Media>? media;
   int? idWeb;
   String? sincronizado;
+  DateTime? creado;
+  DateTime? modificado;
 
   Producto({
     super.id,
@@ -40,6 +42,8 @@ class Producto extends Basico {
     this.media,
     this.idWeb,
     this.sincronizado,
+    this.creado,
+    this.modificado,
   });
 
   @override
@@ -114,6 +118,8 @@ class Producto extends Basico {
     activo = Basico.parseInt(json['activo']);
     idWeb = Basico.parseInt(json['idWeb']);
     sincronizado = Basico.parseString(json['sincronizado']);
+    creado = Basico.parseDate(json['creado']);
+    modificado = Basico.parseDate(json['modificado']);
     if (json['toping'] is bool) {
       toping = json['toping'] ? 1 : 0;
     } else {

+ 20 - 1
lib/services/repo_service.dart

@@ -9,7 +9,7 @@ import 'services.dart';
 import '../views/producto/producto_imagen.dart';
 
 class RepoService<T> {
-  static int dbVersion = 26;
+  static int dbVersion = 27;
   static String dbName = 'posTurquessa.db';
   static const String id = Basico.identificadorWeb;
   static const String idLocal = Basico.identificadorLocal;
@@ -693,6 +693,23 @@ class RepoService<T> {
         ''');
 
           break;
+
+        // case 26:
+        //   final currentUtc = DateTime.now().toUtc().toIso8601String();
+
+        //   await db.rawUpdate(
+        //     "UPDATE Producto SET sincronizado = ? "
+        //     "WHERE sincronizado IS NULL OR sincronizado = ''",
+        //     [currentUtc],
+        //   );
+
+        //   await db.rawUpdate(
+        //     "UPDATE CategoriaProducto SET sincronizado = ? "
+        //     "WHERE sincronizado IS NULL OR sincronizado = ''",
+        //     [currentUtc],
+        //   );
+
+        //   break;
       }
       oldVersion++;
     }
@@ -1242,12 +1259,14 @@ class RepoService<T> {
 
       if (productoLocal.id == 0) {
         print("Insertando nuevo producto: ${productoApi.nombre}");
+        productoApi.sincronizado = DateTime.now().toUtc().toIso8601String();
         await RepoService().guardar(productoApi);
       } else if (forzar ||
           productoApi.modificado != null &&
               (productoLocal.modificado == null ||
                   productoApi.modificado!.isAfter(productoLocal.modificado!))) {
         print("Actualizando producto: ${productoApi.nombre}");
+        productoApi.sincronizado = DateTime.now().toUtc().toIso8601String();
         await RepoService().guardar(productoApi);
       } else {
         // Producto sin cambios

+ 2 - 1
lib/viewmodels/pedido_view_model.dart

@@ -119,6 +119,7 @@ class PedidoViewModel extends ChangeNotifier {
           idPedido: pedido.id,
           idProducto: item.producto.id,
           cantidad: item.cantidad,
+          comentario: item.comentario,
           costoUnitario: item.producto.precio.toString(),
           sincronizado: null,
         );
@@ -347,7 +348,7 @@ class PedidoViewModel extends ChangeNotifier {
       Map<String, dynamic> pedidoJson =
           await prepararPedidoParaApi(pedidoNoSincronizado);
 
-      //print('JSON enviado: $pedidoJson');
+      print('JSON enviado: $pedidoJson');
 
       var response = ApiResponse(await BaseService()
           .post('/pos/pedido/sincronizar', body: pedidoJson));

+ 3 - 5
lib/viewmodels/producto_view_model.dart

@@ -62,9 +62,7 @@ class ProductoViewModel<T> extends ChangeNotifier {
   Future<void> fetchLocalByID({required int idCategoria}) async {
     var db = await RepoService().db;
     var query = await db!.query('Producto',
-        where: 'idCategoria = ?',
-        whereArgs: [idCategoria],
-        orderBy: 'idLocal asc');
+        where: 'idCategoria = ?', whereArgs: [idCategoria], orderBy: 'id asc');
     List<Producto> aux = [];
     for (var element in query) {
       Producto producto = Producto.fromJson(element);
@@ -79,7 +77,7 @@ class ProductoViewModel<T> extends ChangeNotifier {
     var query = await db!.query('Producto',
         where: 'idCategoria = ? and eliminado IS NULL',
         whereArgs: [idCategoria],
-        orderBy: 'idLocal asc');
+        orderBy: 'id asc');
     _productos = query.map((e) => Producto.fromJson(e)).toList();
     notifyListeners();
   }
@@ -90,7 +88,7 @@ class ProductoViewModel<T> extends ChangeNotifier {
       'Producto',
       where: 'nombre LIKE ?',
       whereArgs: ['%$nombre%'],
-      orderBy: 'idLocal asc',
+      orderBy: 'id asc',
     );
     _productos = query.map((e) => Producto.fromJson(e)).toList();
     notifyListeners();

+ 88 - 88
lib/views/categoria_producto/categoria_producto_screen.dart

@@ -27,28 +27,28 @@ class _CategoriaProductoScreenState extends State<CategoriaProductoScreen> {
   }
 
   void go(CategoriaProducto categoriaProducto) {
-    showDialog(
-      context: context,
-      builder: (context) {
-        return TotpCuadroConfirmacion(
-          title: "Editar Categoría Producto",
-          content:
-              "Por favor, ingresa el código de autenticación para continuar.",
-          onSuccess: () {
-            Navigator.push(
-              context,
-              MaterialPageRoute(
-                builder: (context) =>
-                    CategoriaProductoForm(categoriaProducto: categoriaProducto),
-              ),
-            ).then((_) {
-              Provider.of<CategoriaProductoViewModel>(context, listen: false)
-                  .fetchLocalAll();
-            });
-          },
-        );
-      },
-    );
+    // showDialog(
+    //   context: context,
+    //   builder: (context) {
+    //     return TotpCuadroConfirmacion(
+    //       title: "Editar Categoría Producto",
+    //       content:
+    //           "Por favor, ingresa el código de autenticación para continuar.",
+    //       onSuccess: () {
+    //         Navigator.push(
+    //           context,
+    //           MaterialPageRoute(
+    //             builder: (context) =>
+    //                 CategoriaProductoForm(categoriaProducto: categoriaProducto),
+    //           ),
+    //         ).then((_) {
+    //           Provider.of<CategoriaProductoViewModel>(context, listen: false)
+    //               .fetchLocalAll();
+    //         });
+    //       },
+    //     );
+    //   },
+    // );
   }
 
   void clearSearchAndReset() {
@@ -114,36 +114,36 @@ class _CategoriaProductoScreenState extends State<CategoriaProductoScreen> {
             Row(mainAxisAlignment: MainAxisAlignment.spaceBetween, children: [
           PopupMenuButton(
             itemBuilder: (context) => [
-              PopupMenuItem(
-                child: const Text('Editar'),
-                onTap: () => go(item),
-              ),
-              PopupMenuItem(
-                child: const Text('Eliminar'),
-                onTap: () async {
-                  Future.delayed(Duration.zero, () {
-                    showDialog(
-                      context: context,
-                      builder: (context) {
-                        return TotpCuadroConfirmacion(
-                          title: "Eliminar Categoría Producto",
-                          content:
-                              "Por favor, ingresa el código de autenticación para continuar.",
-                          onSuccess: () async {
-                            await Provider.of<CategoriaProductoViewModel>(
-                                    context,
-                                    listen: false)
-                                .deleteCategoriaProducto(item.id);
-                            Provider.of<CategoriaProductoViewModel>(context,
-                                    listen: false)
-                                .fetchLocalAll();
-                          },
-                        );
-                      },
-                    );
-                  });
-                },
-              ),
+              // PopupMenuItem(
+              //   child: const Text('Editar'),
+              //   onTap: () => go(item),
+              // ),
+              // PopupMenuItem(
+              //   child: const Text('Eliminar'),
+              //   onTap: () async {
+              //     Future.delayed(Duration.zero, () {
+              //       showDialog(
+              //         context: context,
+              //         builder: (context) {
+              //           return TotpCuadroConfirmacion(
+              //             title: "Eliminar Categoría Producto",
+              //             content:
+              //                 "Por favor, ingresa el código de autenticación para continuar.",
+              //             onSuccess: () async {
+              //               await Provider.of<CategoriaProductoViewModel>(
+              //                       context,
+              //                       listen: false)
+              //                   .deleteCategoriaProducto(item.id);
+              //               Provider.of<CategoriaProductoViewModel>(context,
+              //                       listen: false)
+              //                   .fetchLocalAll();
+              //             },
+              //           );
+              //         },
+              //       );
+              //     });
+              //   },
+              // ),
             ],
             icon: const Icon(Icons.more_vert),
           ),
@@ -348,42 +348,42 @@ class _CategoriaProductoScreenState extends State<CategoriaProductoScreen> {
           ),
         ],
       ),
-      floatingActionButton: FloatingActionButton.extended(
-        onPressed: () async {
-          showDialog(
-            context: context,
-            builder: (context) {
-              return TotpCuadroConfirmacion(
-                title: "Agregar Categoría",
-                content:
-                    "Por favor, ingresa el código de autenticación para continuar.",
-                onSuccess: () {
-                  CategoriaProducto nuevoProducto = CategoriaProducto();
-                  Navigator.push(
-                    context,
-                    MaterialPageRoute(
-                      builder: (context) => CategoriaProductoForm(
-                          categoriaProducto: nuevoProducto),
-                    ),
-                  ).then((_) => Provider.of<CategoriaProductoViewModel>(context,
-                          listen: false)
-                      .fetchLocalAll());
-                },
-              );
-            },
-          );
-        },
-        icon: Icon(Icons.add, size: 30, color: AppTheme.quaternary),
-        label: Text(
-          "Agregar Categoria Producto",
-          style: TextStyle(fontSize: 18, color: AppTheme.quaternary),
-        ),
-        shape: RoundedRectangleBorder(
-          borderRadius: BorderRadius.circular(8),
-        ),
-        materialTapTargetSize: MaterialTapTargetSize.shrinkWrap,
-        backgroundColor: AppTheme.tertiary,
-      ),
+      // floatingActionButton: FloatingActionButton.extended(
+      //   onPressed: () async {
+      //     showDialog(
+      //       context: context,
+      //       builder: (context) {
+      //         return TotpCuadroConfirmacion(
+      //           title: "Agregar Categoría",
+      //           content:
+      //               "Por favor, ingresa el código de autenticación para continuar.",
+      //           onSuccess: () {
+      //             CategoriaProducto nuevoProducto = CategoriaProducto();
+      //             Navigator.push(
+      //               context,
+      //               MaterialPageRoute(
+      //                 builder: (context) => CategoriaProductoForm(
+      //                     categoriaProducto: nuevoProducto),
+      //               ),
+      //             ).then((_) => Provider.of<CategoriaProductoViewModel>(context,
+      //                     listen: false)
+      //                 .fetchLocalAll());
+      //           },
+      //         );
+      //       },
+      //     );
+      //   },
+      //   icon: Icon(Icons.add, size: 30, color: AppTheme.quaternary),
+      //   label: Text(
+      //     "Agregar Categoria Producto",
+      //     style: TextStyle(fontSize: 18, color: AppTheme.quaternary),
+      //   ),
+      //   shape: RoundedRectangleBorder(
+      //     borderRadius: BorderRadius.circular(8),
+      //   ),
+      //   materialTapTargetSize: MaterialTapTargetSize.shrinkWrap,
+      //   backgroundColor: AppTheme.tertiary,
+      // ),
     );
   }
 

+ 3 - 0
lib/views/home/home_screen.dart

@@ -28,6 +28,9 @@ class Formulario extends State<HomeScreen> {
       Provider.of<ProductoViewModel>(context, listen: false)
           .sincronizarProductosYCategorias();
 
+      // Provider.of<ProductoViewModel>(context, listen: false)
+      //     .sincronizarProductosLocales();
+
       Provider.of<MesaViewModel>(context, listen: false).sincronizarMesas();
 
       final permisoViewModel =

+ 81 - 81
lib/views/mesa/mesa_screen.dart

@@ -23,27 +23,27 @@ class _MesasScreenState extends State<MesasScreen> {
   }
 
   void go(Mesa mesa) {
-    showDialog(
-      context: context,
-      builder: (context) {
-        return TotpCuadroConfirmacion(
-          title: "Editar Mesa",
-          content:
-              "Por favor, ingresa el código de autenticación para continuar.",
-          onSuccess: () {
-            Navigator.push(
-              context,
-              MaterialPageRoute(
-                builder: (context) => MesaForm(mesa: mesa),
-              ),
-            ).then((_) {
-              Provider.of<MesaViewModel>(context, listen: false)
-                  .fetchLocalAll();
-            });
-          },
-        );
-      },
-    );
+    // showDialog(
+    //   context: context,
+    //   builder: (context) {
+    //     return TotpCuadroConfirmacion(
+    //       title: "Editar Mesa",
+    //       content:
+    //           "Por favor, ingresa el código de autenticación para continuar.",
+    //       onSuccess: () {
+    //         Navigator.push(
+    //           context,
+    //           MaterialPageRoute(
+    //             builder: (context) => MesaForm(mesa: mesa),
+    //           ),
+    //         ).then((_) {
+    //           Provider.of<MesaViewModel>(context, listen: false)
+    //               .fetchLocalAll();
+    //         });
+    //       },
+    //     );
+    //   },
+    // );
   }
 
   void clearSearchAndReset() {
@@ -68,31 +68,31 @@ class _MesasScreenState extends State<MesasScreen> {
             Row(mainAxisAlignment: MainAxisAlignment.spaceBetween, children: [
           PopupMenuButton(
             itemBuilder: (context) => [
-              PopupMenuItem(
-                child: const Text('Editar'),
-                onTap: () => go(item),
-              ),
-              PopupMenuItem(
-                child: const Text('Eliminar'),
-                onTap: () async {
-                  Future.delayed(Duration.zero, () {
-                    showDialog(
-                      context: context,
-                      builder: (context) {
-                        return TotpCuadroConfirmacion(
-                          title: "Eliminar Mesa",
-                          content:
-                              "Por favor, ingresa el código de autenticación para continuar.",
-                          onSuccess: () async {
-                            await model.deleteMesa(item.id!);
-                            model.fetchLocalAll();
-                          },
-                        );
-                      },
-                    );
-                  });
-                },
-              ),
+              // PopupMenuItem(
+              //   child: const Text('Editar'),
+              //   onTap: () => go(item),
+              // ),
+              // PopupMenuItem(
+              //   child: const Text('Eliminar'),
+              //   onTap: () async {
+              //     Future.delayed(Duration.zero, () {
+              //       showDialog(
+              //         context: context,
+              //         builder: (context) {
+              //           return TotpCuadroConfirmacion(
+              //             title: "Eliminar Mesa",
+              //             content:
+              //                 "Por favor, ingresa el código de autenticación para continuar.",
+              //             onSuccess: () async {
+              //               await model.deleteMesa(item.id!);
+              //               model.fetchLocalAll();
+              //             },
+              //           );
+              //         },
+              //       );
+              //     });
+              //   },
+              // ),
             ],
             icon: const Icon(Icons.more_vert),
           ),
@@ -279,41 +279,41 @@ class _MesasScreenState extends State<MesasScreen> {
           ),
         ],
       ),
-      floatingActionButton: FloatingActionButton.extended(
-        onPressed: () async {
-          showDialog(
-            context: context,
-            builder: (context) {
-              return TotpCuadroConfirmacion(
-                title: "Agregar Mesa",
-                content:
-                    "Por favor, ingresa el código de autenticación para continuar.",
-                onSuccess: () {
-                  Mesa nuevaMesa = Mesa();
-                  Navigator.push(
-                    context,
-                    MaterialPageRoute(
-                      builder: (context) => MesaForm(mesa: nuevaMesa),
-                    ),
-                  ).then((_) =>
-                      Provider.of<MesaViewModel>(context, listen: false)
-                          .fetchLocalAll());
-                },
-              );
-            },
-          );
-        },
-        icon: Icon(Icons.add, size: 30, color: AppTheme.quaternary),
-        label: Text(
-          "Agregar Mesa",
-          style: TextStyle(fontSize: 18, color: AppTheme.quaternary),
-        ),
-        shape: RoundedRectangleBorder(
-          borderRadius: BorderRadius.circular(8),
-        ),
-        materialTapTargetSize: MaterialTapTargetSize.shrinkWrap,
-        backgroundColor: AppTheme.tertiary,
-      ),
+      // floatingActionButton: FloatingActionButton.extended(
+      //   onPressed: () async {
+      //     showDialog(
+      //       context: context,
+      //       builder: (context) {
+      //         return TotpCuadroConfirmacion(
+      //           title: "Agregar Mesa",
+      //           content:
+      //               "Por favor, ingresa el código de autenticación para continuar.",
+      //           onSuccess: () {
+      //             Mesa nuevaMesa = Mesa();
+      //             Navigator.push(
+      //               context,
+      //               MaterialPageRoute(
+      //                 builder: (context) => MesaForm(mesa: nuevaMesa),
+      //               ),
+      //             ).then((_) =>
+      //                 Provider.of<MesaViewModel>(context, listen: false)
+      //                     .fetchLocalAll());
+      //           },
+      //         );
+      //       },
+      //     );
+      //   },
+      //   icon: Icon(Icons.add, size: 30, color: AppTheme.quaternary),
+      //   label: Text(
+      //     "Agregar Mesa",
+      //     style: TextStyle(fontSize: 18, color: AppTheme.quaternary),
+      //   ),
+      //   shape: RoundedRectangleBorder(
+      //     borderRadius: BorderRadius.circular(8),
+      //   ),
+      //   materialTapTargetSize: MaterialTapTargetSize.shrinkWrap,
+      //   backgroundColor: AppTheme.tertiary,
+      // ),
     );
   }
 

+ 5 - 1
lib/views/producto/producto_form.dart

@@ -365,6 +365,9 @@ class Formulario extends State<ProductoForm> {
       precio: precio,
       idCategoria: categoriaProducto!.id,
       imagen: _selectedFilePath,
+      creado: widget.producto.creado,
+      modificado: DateTime.now().toUtc(),
+      sincronizado: null,
       topings: selectedToppings.isNotEmpty ? selectedToppings : null,
     );
 
@@ -388,9 +391,10 @@ class Formulario extends State<ProductoForm> {
       Producto nuevoProducto = Producto(
         nombre: _nombre.text,
         descripcion: _descripcion.text,
-        precio: precio, // Guardando como String para la base de datos
+        precio: precio,
         idCategoria: categoriaProducto!.id,
         imagen: _selectedFilePath,
+        creado: DateTime.now().toUtc(),
         topings: selectedToppings.isNotEmpty ? selectedToppings : null,
       );
 

+ 86 - 86
lib/views/producto/producto_screen.dart

@@ -28,27 +28,27 @@ class _ProductoScreenState extends State<ProductoScreen> {
   }
 
   void go(Producto producto) {
-    showDialog(
-      context: context,
-      builder: (context) {
-        return TotpCuadroConfirmacion(
-          title: "Editar Producto",
-          content:
-              "Por favor, ingresa el código de autenticación para continuar.",
-          onSuccess: () {
-            Navigator.push(
-              context,
-              MaterialPageRoute(
-                builder: (context) => ProductoForm(producto: producto),
-              ),
-            ).then((_) {
-              Provider.of<ProductoViewModel>(context, listen: false)
-                  .fetchLocalAll();
-            });
-          },
-        );
-      },
-    );
+    // showDialog(
+    //   context: context,
+    //   builder: (context) {
+    //     return TotpCuadroConfirmacion(
+    //       title: "Editar Producto",
+    //       content:
+    //           "Por favor, ingresa el código de autenticación para continuar.",
+    //       onSuccess: () {
+    //         Navigator.push(
+    //           context,
+    //           MaterialPageRoute(
+    //             builder: (context) => ProductoForm(producto: producto),
+    //           ),
+    //         ).then((_) {
+    //           Provider.of<ProductoViewModel>(context, listen: false)
+    //               .fetchLocalAll();
+    //         });
+    //       },
+    //     );
+    //   },
+    // );
   }
 
   void clearSearchAndReset() {
@@ -112,35 +112,35 @@ class _ProductoScreenState extends State<ProductoScreen> {
             Row(mainAxisAlignment: MainAxisAlignment.spaceBetween, children: [
           PopupMenuButton(
             itemBuilder: (context) => [
-              PopupMenuItem(
-                child: const Text('Editar'),
-                onTap: () => go(item),
-              ),
-              PopupMenuItem(
-                child: const Text('Eliminar'),
-                onTap: () async {
-                  Future.delayed(Duration.zero, () {
-                    showDialog(
-                      context: context,
-                      builder: (context) {
-                        return TotpCuadroConfirmacion(
-                          title: "Eliminar Producto",
-                          content:
-                              "Por favor, ingresa el código de autenticación para continuar.",
-                          onSuccess: () async {
-                            await Provider.of<ProductoViewModel>(context,
-                                    listen: false)
-                                .deleteProducto(item.id);
-                            Provider.of<ProductoViewModel>(context,
-                                    listen: false)
-                                .fetchLocalAll();
-                          },
-                        );
-                      },
-                    );
-                  });
-                },
-              ),
+              // PopupMenuItem(
+              //   child: const Text('Editar'),
+              //   onTap: () => go(item),
+              // ),
+              // PopupMenuItem(
+              //   child: const Text('Eliminar'),
+              //   onTap: () async {
+              //     Future.delayed(Duration.zero, () {
+              //       showDialog(
+              //         context: context,
+              //         builder: (context) {
+              //           return TotpCuadroConfirmacion(
+              //             title: "Eliminar Producto",
+              //             content:
+              //                 "Por favor, ingresa el código de autenticación para continuar.",
+              //             onSuccess: () async {
+              //               await Provider.of<ProductoViewModel>(context,
+              //                       listen: false)
+              //                   .deleteProducto(item.id);
+              //               Provider.of<ProductoViewModel>(context,
+              //                       listen: false)
+              //                   .fetchLocalAll();
+              //             },
+              //           );
+              //         },
+              //       );
+              //     });
+              //   },
+              // ),
             ],
             icon: const Icon(Icons.more_vert),
           ),
@@ -367,42 +367,42 @@ class _ProductoScreenState extends State<ProductoScreen> {
           ),
         ],
       ),
-      floatingActionButton: FloatingActionButton.extended(
-        onPressed: () async {
-          showDialog(
-            context: context,
-            builder: (context) {
-              return TotpCuadroConfirmacion(
-                title: "Agregar Producto",
-                content:
-                    "Por favor, ingresa el código de autenticación para continuar.",
-                onSuccess: () {
-                  Producto nuevoProducto = Producto();
-                  Navigator.push(
-                    context,
-                    MaterialPageRoute(
-                      builder: (context) =>
-                          ProductoForm(producto: nuevoProducto),
-                    ),
-                  ).then((_) =>
-                      Provider.of<ProductoViewModel>(context, listen: false)
-                          .fetchLocalAll());
-                },
-              );
-            },
-          );
-        },
-        icon: Icon(Icons.add, size: 30, color: AppTheme.quaternary),
-        label: Text(
-          "Agregar Producto",
-          style: TextStyle(fontSize: 18, color: AppTheme.quaternary),
-        ),
-        shape: RoundedRectangleBorder(
-          borderRadius: BorderRadius.circular(8),
-        ),
-        materialTapTargetSize: MaterialTapTargetSize.shrinkWrap,
-        backgroundColor: AppTheme.tertiary,
-      ),
+      // floatingActionButton: FloatingActionButton.extended(
+      //   onPressed: () async {
+      //     showDialog(
+      //       context: context,
+      //       builder: (context) {
+      //         return TotpCuadroConfirmacion(
+      //           title: "Agregar Producto",
+      //           content:
+      //               "Por favor, ingresa el código de autenticación para continuar.",
+      //           onSuccess: () {
+      //             Producto nuevoProducto = Producto();
+      //             Navigator.push(
+      //               context,
+      //               MaterialPageRoute(
+      //                 builder: (context) =>
+      //                     ProductoForm(producto: nuevoProducto),
+      //               ),
+      //             ).then((_) =>
+      //                 Provider.of<ProductoViewModel>(context, listen: false)
+      //                     .fetchLocalAll());
+      //           },
+      //         );
+      //       },
+      //     );
+      //   },
+      //   icon: Icon(Icons.add, size: 30, color: AppTheme.quaternary),
+      //   label: Text(
+      //     "Agregar Producto",
+      //     style: TextStyle(fontSize: 18, color: AppTheme.quaternary),
+      //   ),
+      //   shape: RoundedRectangleBorder(
+      //     borderRadius: BorderRadius.circular(8),
+      //   ),
+      //   materialTapTargetSize: MaterialTapTargetSize.shrinkWrap,
+      //   backgroundColor: AppTheme.tertiary,
+      // ),
     );
   }