diff --git a/lib/Screens/EditProductScreen.dart b/lib/Screens/EditProductScreen.dart index a748ab6..a88ba66 100644 --- a/lib/Screens/EditProductScreen.dart +++ b/lib/Screens/EditProductScreen.dart @@ -16,6 +16,7 @@ class _EditProductScreenState extends State { final FocusNode _descriptionFocusNode = FocusNode(); final GlobalKey _formKey = GlobalKey(); var _isPageLoadedFirstTime = true; + String appBarTitle = 'Add'; final urlPattern = r"(https?|ftp)://([-A-Z0-9.]+)(/[-A-Z0-9+&@#/%=~_|!:,.;]*)?(\?[A-Z0-9+&@#/%=~_|!:‌​,.;]*)?"; var testData = { @@ -50,6 +51,7 @@ class _EditProductScreenState extends State { 'description': _editedProduct.description, 'imgUrl': _editedProduct.imgUrl, }; + appBarTitle = 'Edit'; } } _isPageLoadedFirstTime = false; @@ -82,8 +84,8 @@ class _EditProductScreenState extends State { Widget build(BuildContext context) { return Scaffold( appBar: AppBar( - title: const AppLogoName( - firstName: 'Add', + title: AppLogoName( + firstName: appBarTitle, lastName: 'Product', ), actions: [