thingsboard / flutter_thingsboard_app

ThingsBoard Mobile Application
https://thingsboard.io/products/mobile/
BSD 3-Clause "New" or "Revised" License
208 stars 155 forks source link

Where is this error text located to translate it? #11

Closed ferchinas closed 5 months ago

ferchinas commented 2 years ago

Hello: I have translated all the texts of the App into Spanish, but there is a message that is still in English and I cannot find where it is defined.

Screenshot_20211126-105210

Does anyone know where it is?

ybeshkarov commented 5 months ago

Hello, @ferchinas!

The lib/core/entity/entities_list.dart file contains the PagedChildBuilderDelegate widget. This widget has the

this.firstPageErrorIndicatorBuilder,
this.newPageErrorIndicatorBuilder,

callbacks.

Those callbacks as return results expecting widgets. So you can override them to get the behavior you want.

P.S. PagedChildBuilderDelegate the part of the https://pub.dev/packages/infinite_scroll_pagination.