class NoneBottomBorderDrawerHeader extends StatelessWidget {
final Decoration decoration;
final Widget child;
const NoneBottomBorderDrawerHeader({
Key? key,
required this.decoration,
required this.child,
}) : super(key: key);
@override
Widget build(BuildContext context) {
return Theme(
data: Theme.of(context).copyWith(
dividerColor: Colors.transparent,
),
child: DrawerHeader(
decoration: decoration,
child: child,
),
);
}
}
[Flutter] DrawerHeader bottom border 없애는 함수
0 Comments