import 'package:flutter/material.dart'; class SolMenuDrawer extends StatelessWidget { final List childs; final double? elevation; final double? width; final ShapeBorder? shape; final Color? backgroundColor; final Color? shadowColor; final Color? surfaceTintColor; const SolMenuDrawer({ super.key, required this.childs, this.elevation, this.width, this.shape, this.backgroundColor, this.shadowColor, this.surfaceTintColor, }); @override Widget build(BuildContext context) { return Drawer( elevation: elevation ?? 16.0, // Varsayılan yükseklik width: width ?? 250.0, // Varsayılan genişlik shape: shape ?? RoundedRectangleBorder(borderRadius: BorderRadius.horizontal(right: Radius.circular(16.0))), backgroundColor: backgroundColor ?? Colors.white.withAlpha(155), shadowColor: shadowColor, surfaceTintColor: surfaceTintColor, child: Column(children: childs), ); } }