File tree Expand file tree Collapse file tree 1 file changed +28
-11
lines changed
lib/features/user/presentation/multi_account/widgets Expand file tree Collapse file tree 1 file changed +28
-11
lines changed Original file line number Diff line number Diff line change @@ -65,19 +65,22 @@ class _TrailingIcons extends StatelessWidget {
6565 children.add (loginIcon);
6666 }
6767
68- if (showRemoveButton) {
69- if (children.isNotEmpty) {
70- children.add (const SizedBox (width: 8 ));
71- }
72- children.add (IconButton (
73- onPressed: onRemove,
74- icon: const Icon (
75- Icons .close,
76- size: 20 ,
77- ),
78- ));
68+ if (children.isNotEmpty) {
69+ children.add (const SizedBox (width: 8 ));
7970 }
8071
72+ children.add (
73+ showRemoveButton
74+ ? IconButton (
75+ onPressed: onRemove,
76+ icon: const Icon (
77+ Icons .close,
78+ size: 20 ,
79+ ),
80+ )
81+ : _buildCheckIcon (context),
82+ );
83+
8184 return Row (
8285 mainAxisSize: MainAxisSize .min,
8386 children: children,
@@ -103,6 +106,20 @@ class _TrailingIcons extends StatelessWidget {
103106 );
104107 }
105108
109+ Widget _buildCheckIcon (BuildContext context) {
110+ return SizedBox (
111+ height: 48 ,
112+ width: 48 ,
113+ child: Center (
114+ child: Icon (
115+ Icons .check,
116+ size: 20 ,
117+ color: Theme .of (context).colorScheme.primary,
118+ ),
119+ ),
120+ );
121+ }
122+
106123 String ? _authAssetForType (AuthType type) {
107124 switch (type) {
108125 case AuthType .postingKey:
You can’t perform that action at this time.
0 commit comments