[Flutter] DrawerHeader bottom border 없애는 함수

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,
      ),
    );
  }
}
guest
0 Comments
Inline Feedbacks
View all comments