浏览代码

Ajuste Appbar producto form

OscarGil03 5 月之前
父节点
当前提交
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),