TF-3998 Reduce size of toggle in vacation settings

This commit is contained in:
dab246
2025-09-03 13:54:49 +07:00
committed by Dat H. Pham
parent 782c6f7f44
commit 614cb1e505
7 changed files with 48 additions and 29 deletions
@@ -0,0 +1,27 @@
import 'package:core/presentation/resources/image_paths.dart';
import 'package:flutter/material.dart';
import 'package:flutter_svg/flutter_svg.dart';
class DefaultSwitchIconWidget extends StatelessWidget {
final ImagePaths imagePaths;
final bool isEnabled;
const DefaultSwitchIconWidget({
super.key,
required this.imagePaths,
required this.isEnabled,
});
@override
Widget build(BuildContext context) {
return SvgPicture.asset(
key: key,
isEnabled ? imagePaths.icSwitchOn : imagePaths.icSwitchOff,
fit: BoxFit.fill,
width: 44,
height: 28,
);
}
}