feat: add clear search box fix: close text size
This commit is contained in:
@@ -411,6 +411,18 @@ class _TabPanelState extends State<_TabPanel> {
|
||||
decoration: InputDecoration(
|
||||
hintText: l10n.searchByName,
|
||||
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,
|
||||
),
|
||||
),
|
||||
|
||||
@@ -39,11 +39,21 @@ class _SlideConfirmState extends State<SlideConfirm> {
|
||||
alignment: Alignment.centerLeft,
|
||||
children: [
|
||||
Center(
|
||||
child: Text(
|
||||
_confirmed ? l10n.closingTab : l10n.slideToConfirmClosing,
|
||||
style: TextStyle(
|
||||
color: scheme.error,
|
||||
fontWeight: FontWeight.w700,
|
||||
child: Padding(
|
||||
padding: const EdgeInsets.symmetric(horizontal: size),
|
||||
child: FittedBox(
|
||||
fit: BoxFit.scaleDown,
|
||||
child: Text(
|
||||
_confirmed
|
||||
? l10n.closingTab
|
||||
: l10n.slideToConfirmClosing,
|
||||
maxLines: 1,
|
||||
style: TextStyle(
|
||||
color: scheme.error,
|
||||
fontSize: 13,
|
||||
fontWeight: FontWeight.w700,
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user