Fromatting and localizations
This commit is contained in:
@@ -76,7 +76,8 @@ class _ATMLocatorScreenState extends State<ATMLocatorScreen> {
|
||||
onChanged:
|
||||
_filterAtms, // Updated: Call _filterAtms on text change
|
||||
decoration: InputDecoration(
|
||||
hintText: "Name/Address", // Hint text for the search bar
|
||||
hintText: AppLocalizations.of(context)
|
||||
.nameAddress, // Hint text for the search bar
|
||||
prefixIcon: const Icon(Icons.search), // Search icon
|
||||
border: OutlineInputBorder(
|
||||
borderRadius: BorderRadius.circular(12),
|
||||
@@ -90,9 +91,9 @@ class _ATMLocatorScreenState extends State<ATMLocatorScreen> {
|
||||
child: _isLoading
|
||||
? _buildShimmerList() // Display shimmer while loading
|
||||
: _filteredAtms.isEmpty
|
||||
? const Center(
|
||||
child: Text(
|
||||
"No matching ATMs found")) // Message if no ATMs found
|
||||
? Center(
|
||||
child: Text(AppLocalizations.of(context)
|
||||
.noMatchingAtmsFound)) // Message if no ATMs found
|
||||
: ListView.builder(
|
||||
itemCount: _filteredAtms
|
||||
.length, // Number of items in the filtered list
|
||||
|
||||
Reference in New Issue
Block a user