TF-3998 Reduce size of toggle in vacation settings
This commit is contained in:
@@ -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,
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user