mirror of
https://github.com/ente-io/ente.git
synced 2025-08-07 23:18:10 +00:00
[auth] minor fixes
This commit is contained in:
parent
726cfc8bf2
commit
75ae277334
@ -4,36 +4,27 @@ import 'package:ente_auth/utils/totp_util.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
class CustomIconWidget extends StatelessWidget {
|
||||
final bool isCustomIcon;
|
||||
final String iconData;
|
||||
final void Function() onTap;
|
||||
CustomIconWidget({
|
||||
super.key,
|
||||
required this.isCustomIcon,
|
||||
required this.iconData,
|
||||
required this.onTap,
|
||||
});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return GestureDetector(
|
||||
onTap: onTap,
|
||||
child: Container(
|
||||
decoration: BoxDecoration(
|
||||
border: Border.all(
|
||||
width: 1.5,
|
||||
color: isCustomIcon
|
||||
? getEnteColorScheme(context).tagChipSelectedColor
|
||||
: getEnteColorScheme(context).tagChipUnselectedColor,
|
||||
),
|
||||
borderRadius: const BorderRadius.all(Radius.circular(12.0)),
|
||||
),
|
||||
padding: const EdgeInsets.all(8),
|
||||
child: IconUtils.instance.getIcon(
|
||||
context,
|
||||
safeDecode(iconData).trim(),
|
||||
width: 50,
|
||||
return Container(
|
||||
decoration: BoxDecoration(
|
||||
border: Border.all(
|
||||
width: 1.5,
|
||||
color: getEnteColorScheme(context).tagChipSelectedColor,
|
||||
),
|
||||
borderRadius: const BorderRadius.all(Radius.circular(12.0)),
|
||||
),
|
||||
padding: const EdgeInsets.all(8),
|
||||
child: IconUtils.instance.getIcon(
|
||||
context,
|
||||
safeDecode(iconData).trim(),
|
||||
width: 50,
|
||||
),
|
||||
);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user