66
@override
67
Widget get endDrawer => CardMenu();
68
69
- @override
70
- Widget leading(BuildContext context) {
71
- final _backButton = Icon(
72
- Icons.arrow_back_ios,
73
- color: Theme.of(context)
74
- .accentTextTheme!
75
- .displayMedium!
76
- .backgroundColor!,
77
- size: 16,
78
- );
79
-
80
- return SizedBox(
81
- height: 37,
82
- width: 37,
83
- child: ButtonTheme(
84
- minWidth: double.minPositive,
85
- child: TextButton(
86
- // FIX-ME: Style
87
- //highlightColor: Colors.transparent,
88
- //splashColor: Colors.transparent,
89
- //padding: EdgeInsets.all(0),
90
- onPressed: (){
91
- if (searchFocusNode.hasFocus) {
92
- searchFocusNode.unfocus();
93
- return;
94
- }
95
-
96
- Navigator.of(context).pop();
97
- },
98
- child: _backButton),
99
- ),
100
- );
101
- }
102
-
69
@override
70
Widget middle(BuildContext context) {
71
return Text(
89
90
@override
91
Widget body(BuildContext context) {
126
- final filterButton = InkWell(
127
- onTap: () async {
128
- await showCategoryFilter(context);
129
- _cardsListViewModel.getMerchants();
130
- },
131
- child: Container(
132
- width: 32,
133
- padding: EdgeInsets.all(8),
134
- decoration: BoxDecoration(
135
- color: Theme.of(context).textTheme!.titleLarge!.backgroundColor!,
136
- border: Border.all(
137
- color: Colors.white.withOpacity(0.2),
92
+ final filterButton = Semantics(
93
+ label: S.of(context).filter_by,
94
+ child: InkWell(
95
+ onTap: () async {
96
+ await showCategoryFilter(context);
97
+ _cardsListViewModel.getMerchants();
98
+ },
99
+ child: Container(
100
+ width: 32,
101
+ padding: EdgeInsets.all(8),
102
+ decoration: BoxDecoration(
103
+ color: Theme.of(context).textTheme!.titleLarge!.backgroundColor!,
104
+ border: Border.all(
105
+ color: Colors.white.withOpacity(0.2),
106
+ ),
107
+ borderRadius: BorderRadius.circular(10),
108
),
139
- borderRadius: BorderRadius.circular(10),
140
- ),
141
- child: Image.asset(
142
- 'assets/images/filter.png',
143
- color: Theme.of(context).textTheme!.bodySmall!.decorationColor!,
144
- ),
145
- )
109
+ child: Image.asset(
110
+ 'assets/images/filter.png',
111
+ color: Theme.of(context).textTheme!.bodySmall!.decorationColor!,
112
+ ),
113
+ )),
114
);
115
116
return Padding(
249
final FocusNode focusNode;
250
@override
251
Widget build(BuildContext context) {
284
- final searchIcon = Padding(
285
- padding: EdgeInsets.all(8),
286
- child: Image.asset(
287
- 'assets/images/mini_search_icon.png',
288
- color: Theme.of(context).textTheme!.bodySmall!.decorationColor!,
252
+ final searchIcon = ExcludeSemantics(
253
+ child: Padding(
254
+ padding: EdgeInsets.all(8),
255
+ child: Image.asset(
256
+ 'assets/images/mini_search_icon.png',
257
+ color: Theme.of(context).textTheme!.bodySmall!.decorationColor!,
258
+ ),
259
),
260
);
261
305
306
@override
307
Widget build(BuildContext context) {
338
- return Material(
339
- color: Colors.transparent,
340
- child: IconButton(
341
- padding: EdgeInsets.zero,
342
- constraints: BoxConstraints(),
343
- highlightColor: Colors.transparent,
344
- splashColor: Colors.transparent,
345
- iconSize: 25,
346
- onPressed: onPressed,
347
- icon: Image.asset(
348
- asset,
349
- color: Theme.of(context).accentTextTheme!.displayMedium!.backgroundColor!,
308
+ return Semantics(
309
+ label: S.of(context).profile,
310
+ child: Material(
311
+ color: Colors.transparent,
312
+ child: IconButton(
313
+ padding: EdgeInsets.zero,
314
+ constraints: BoxConstraints(),
315
+ highlightColor: Colors.transparent,
316
+ splashColor: Colors.transparent,
317
+ iconSize: 25,
318
+ onPressed: onPressed,
319
+ icon: Image.asset(
320
+ asset,
321
+ color:
322
+ Theme.of(context).accentTextTheme!.displayMedium!.backgroundColor!,
323
+ ),
324
),
325
),
326
);