feat: add clear search box fix: close text size
This commit is contained in:
@@ -19,6 +19,7 @@
|
|||||||
"couldNotCreateTab": "Could not create tab: {error}",
|
"couldNotCreateTab": "Could not create tab: {error}",
|
||||||
"@couldNotCreateTab": {"placeholders": {"error": {"type": "String"}}},
|
"@couldNotCreateTab": {"placeholders": {"error": {"type": "String"}}},
|
||||||
"searchByName": "Search by name…",
|
"searchByName": "Search by name…",
|
||||||
|
"clearSearch": "Clear search",
|
||||||
"allCustomers": "All customers",
|
"allCustomers": "All customers",
|
||||||
"customer": "Customer",
|
"customer": "Customer",
|
||||||
"noClosedTabs": "No closed tabs yet",
|
"noClosedTabs": "No closed tabs yet",
|
||||||
|
|||||||
@@ -206,6 +206,12 @@ abstract class AppLocalizations {
|
|||||||
/// **'Search by name…'**
|
/// **'Search by name…'**
|
||||||
String get searchByName;
|
String get searchByName;
|
||||||
|
|
||||||
|
/// No description provided for @clearSearch.
|
||||||
|
///
|
||||||
|
/// In en, this message translates to:
|
||||||
|
/// **'Clear search'**
|
||||||
|
String get clearSearch;
|
||||||
|
|
||||||
/// No description provided for @allCustomers.
|
/// No description provided for @allCustomers.
|
||||||
///
|
///
|
||||||
/// In en, this message translates to:
|
/// In en, this message translates to:
|
||||||
|
|||||||
@@ -64,6 +64,9 @@ class AppLocalizationsEn extends AppLocalizations {
|
|||||||
@override
|
@override
|
||||||
String get searchByName => 'Search by name…';
|
String get searchByName => 'Search by name…';
|
||||||
|
|
||||||
|
@override
|
||||||
|
String get clearSearch => 'Clear search';
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String get allCustomers => 'All customers';
|
String get allCustomers => 'All customers';
|
||||||
|
|
||||||
|
|||||||
@@ -64,6 +64,9 @@ class AppLocalizationsNl extends AppLocalizations {
|
|||||||
@override
|
@override
|
||||||
String get searchByName => 'Zoeken op naam…';
|
String get searchByName => 'Zoeken op naam…';
|
||||||
|
|
||||||
|
@override
|
||||||
|
String get clearSearch => 'Zoekopdracht wissen';
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String get allCustomers => 'Alle klanten';
|
String get allCustomers => 'Alle klanten';
|
||||||
|
|
||||||
|
|||||||
@@ -19,6 +19,7 @@
|
|||||||
"couldNotCreateTab": "Poef kon niet worden aangemaakt: {error}",
|
"couldNotCreateTab": "Poef kon niet worden aangemaakt: {error}",
|
||||||
"@couldNotCreateTab": {"placeholders": {"error": {"type": "String"}}},
|
"@couldNotCreateTab": {"placeholders": {"error": {"type": "String"}}},
|
||||||
"searchByName": "Zoeken op naam…",
|
"searchByName": "Zoeken op naam…",
|
||||||
|
"clearSearch": "Zoekopdracht wissen",
|
||||||
"allCustomers": "Alle klanten",
|
"allCustomers": "Alle klanten",
|
||||||
"customer": "Klant",
|
"customer": "Klant",
|
||||||
"noClosedTabs": "Nog geen gesloten poefs",
|
"noClosedTabs": "Nog geen gesloten poefs",
|
||||||
|
|||||||
@@ -411,6 +411,18 @@ class _TabPanelState extends State<_TabPanel> {
|
|||||||
decoration: InputDecoration(
|
decoration: InputDecoration(
|
||||||
hintText: l10n.searchByName,
|
hintText: l10n.searchByName,
|
||||||
prefixIcon: Icon(Icons.search_rounded, size: 20),
|
prefixIcon: Icon(Icons.search_rounded, size: 20),
|
||||||
|
suffixIcon: _searchQuery.isEmpty
|
||||||
|
? null
|
||||||
|
: IconButton(
|
||||||
|
onPressed: () {
|
||||||
|
_searchController.clear();
|
||||||
|
setState(() {
|
||||||
|
_searchQuery = '';
|
||||||
|
});
|
||||||
|
},
|
||||||
|
icon: const Icon(Icons.clear_rounded),
|
||||||
|
tooltip: l10n.clearSearch,
|
||||||
|
),
|
||||||
isDense: true,
|
isDense: true,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|||||||
@@ -39,11 +39,21 @@ class _SlideConfirmState extends State<SlideConfirm> {
|
|||||||
alignment: Alignment.centerLeft,
|
alignment: Alignment.centerLeft,
|
||||||
children: [
|
children: [
|
||||||
Center(
|
Center(
|
||||||
child: Text(
|
child: Padding(
|
||||||
_confirmed ? l10n.closingTab : l10n.slideToConfirmClosing,
|
padding: const EdgeInsets.symmetric(horizontal: size),
|
||||||
style: TextStyle(
|
child: FittedBox(
|
||||||
color: scheme.error,
|
fit: BoxFit.scaleDown,
|
||||||
fontWeight: FontWeight.w700,
|
child: Text(
|
||||||
|
_confirmed
|
||||||
|
? l10n.closingTab
|
||||||
|
: l10n.slideToConfirmClosing,
|
||||||
|
maxLines: 1,
|
||||||
|
style: TextStyle(
|
||||||
|
color: scheme.error,
|
||||||
|
fontSize: 13,
|
||||||
|
fontWeight: FontWeight.w700,
|
||||||
|
),
|
||||||
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|||||||
+1
-1
@@ -16,7 +16,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
|
|||||||
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
|
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
|
||||||
# In Windows, build-name is used as the major, minor, and patch parts
|
# In Windows, build-name is used as the major, minor, and patch parts
|
||||||
# of the product and file versions while build-number is used as the build suffix.
|
# of the product and file versions while build-number is used as the build suffix.
|
||||||
version: 1.0.11
|
version: 1.0.12
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
sdk: ^3.12.2
|
sdk: ^3.12.2
|
||||||
|
|||||||
Reference in New Issue
Block a user