OscarGil03 месяцев назад: 5
Родитель
Сommit
a2a2cc9c4e
1 измененных файлов с 3 добавлено и 1 удалено
  1. 3 1
      lib/views/producto/producto_form.dart

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

@@ -128,7 +128,9 @@ class Formulario extends State<ProductoForm> {
     return Scaffold(
       appBar: AppBar(
         title: Text(
-          'Nuevo Producto',
+          widget.producto.id > 0
+              ? 'Consulta Producto ID:${widget.producto.id}'
+              : 'Nuevo Producto',
           style: TextStyle(color: AppTheme.secondary),
         ),
         iconTheme: IconThemeData(color: AppTheme.secondary),