瀏覽代碼

Cambio version

OscarGil03 4 月之前
父節點
當前提交
eda469f3f5

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

@@ -419,7 +419,7 @@ class _CategoriaProductoScreenState extends State<CategoriaProductoScreen> {
                     shape: RoundedRectangleBorder(
                       borderRadius: BorderRadius.circular(20.0),
                     ),
-                    primary: AppTheme.tertiary,
+                    backgroundColor: AppTheme.tertiary,
                     padding: const EdgeInsets.symmetric(vertical: 25),
                   ),
                   child: Text('Limpiar',
@@ -447,7 +447,7 @@ class _CategoriaProductoScreenState extends State<CategoriaProductoScreen> {
                     shape: RoundedRectangleBorder(
                       borderRadius: BorderRadius.circular(20.0),
                     ),
-                    primary: AppTheme.tertiary,
+                    backgroundColor: AppTheme.tertiary,
                     padding: const EdgeInsets.symmetric(vertical: 25),
                   ),
                   child: Text('Buscar',

+ 1 - 1
lib/views/pedido/pedido_detalle_screen.dart

@@ -346,7 +346,7 @@ class _PedidoDetalleScreenState extends State<PedidoDetalleScreen> {
                 ),
                 style: ElevatedButton.styleFrom(
                   padding: const EdgeInsets.fromLTRB(50, 20, 50, 20),
-                  primary: AppTheme.tertiary,
+                  backgroundColor: AppTheme.tertiary,
                 ),
               ),
             )

+ 2 - 2
lib/views/pedido/pedido_screen.dart

@@ -610,7 +610,7 @@ class _PedidoScreenState extends State<PedidoScreen> {
                   shape: RoundedRectangleBorder(
                     borderRadius: BorderRadius.circular(20.0),
                   ),
-                  primary: AppTheme.tertiary,
+                  backgroundColor: AppTheme.tertiary,
                   padding: const EdgeInsets.symmetric(vertical: 25),
                 ),
                 child: Text('Limpiar',
@@ -648,7 +648,7 @@ class _PedidoScreenState extends State<PedidoScreen> {
                   shape: RoundedRectangleBorder(
                     borderRadius: BorderRadius.circular(20.0),
                   ),
-                  primary: AppTheme.tertiary,
+                  backgroundColor: AppTheme.tertiary,
                   padding: const EdgeInsets.symmetric(vertical: 25),
                 ),
                 child: Text('Buscar',

+ 2 - 2
lib/views/producto/producto_form.dart

@@ -209,8 +209,8 @@ class Formulario extends State<ProductoForm> {
                           shape: RoundedRectangleBorder(
                               borderRadius:
                                   BorderRadius.all(Radius.circular(20))),
-                          primary: AppTheme.tertiary,
-                          onPrimary: AppTheme.quaternary,
+                          backgroundColor: AppTheme.tertiary,
+                          foregroundColor: AppTheme.quaternary,
                         ),
                         child: Column(
                           mainAxisSize: MainAxisSize.min,

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

@@ -438,7 +438,7 @@ class _ProductoScreenState extends State<ProductoScreen> {
                     shape: RoundedRectangleBorder(
                       borderRadius: BorderRadius.circular(20.0),
                     ),
-                    primary: AppTheme.tertiary,
+                    backgroundColor: AppTheme.tertiary,
                     padding: const EdgeInsets.symmetric(vertical: 25),
                   ),
                   child: Text('Limpiar',
@@ -466,7 +466,7 @@ class _ProductoScreenState extends State<ProductoScreen> {
                     shape: RoundedRectangleBorder(
                       borderRadius: BorderRadius.circular(20.0),
                     ),
-                    primary: AppTheme.tertiary,
+                    backgroundColor: AppTheme.tertiary,
                     padding: const EdgeInsets.symmetric(vertical: 25),
                   ),
                   child: Text('Buscar',

+ 2 - 2
lib/views/variable/variable_screen.dart

@@ -381,7 +381,7 @@ class _VariablesScreenState extends State<VariablesScreen> {
                     shape: RoundedRectangleBorder(
                       borderRadius: BorderRadius.circular(20.0),
                     ),
-                    primary: AppTheme.tertiary,
+                    backgroundColor: AppTheme.tertiary,
                     padding: const EdgeInsets.symmetric(vertical: 25),
                   ),
                   child: Text('Limpiar',
@@ -409,7 +409,7 @@ class _VariablesScreenState extends State<VariablesScreen> {
                     shape: RoundedRectangleBorder(
                       borderRadius: BorderRadius.circular(20.0),
                     ),
-                    primary: AppTheme.tertiary,
+                    backgroundColor: AppTheme.tertiary,
                     padding: const EdgeInsets.symmetric(vertical: 25),
                   ),
                   child: Text('Buscar',

+ 1 - 1
lib/views/venta/venta_screen.dart

@@ -106,7 +106,7 @@ class _VentaScreenState extends State<VentaScreen> {
                         shape: RoundedRectangleBorder(
                           borderRadius: BorderRadius.circular(20.0),
                         ),
-                        primary: AppTheme.tertiary,
+                        backgroundColor: AppTheme.tertiary,
                         padding: const EdgeInsets.symmetric(vertical: 25),
                       ),
                       child: Text('Limpiar',

+ 2 - 2
lib/widgets/widgets_components.dart

@@ -197,7 +197,7 @@ Future<DateTime?> showDatetimePicker(BuildContext context, DateTime? fecha,
           ),
           textButtonTheme: TextButtonThemeData(
             style: TextButton.styleFrom(
-              primary: AppTheme.secondary,
+              backgroundColor: AppTheme.secondary,
             ),
           ),
         ),
@@ -228,7 +228,7 @@ Future<DateTime?> showDatetimePicker(BuildContext context, DateTime? fecha,
           ),
           textButtonTheme: TextButtonThemeData(
             style: TextButton.styleFrom(
-              primary: AppTheme.secondary,
+              backgroundColor: AppTheme.secondary,
             ),
           ),
         ),