APP_NEW/lib/Component/Button/top_bar_filled_button.dart
2025-03-11 21:17:14 +08:00

26 lines
620 B
Dart

import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:lamiter/Extension/build_context.dart';
class TopBarFilledButton extends StatelessWidget {
final IconData iconData;
final Function()? onPressed;
const TopBarFilledButton({
super.key,
required this.iconData,
this.onPressed,
});
@override
Widget build(BuildContext context) {
return FilledButton(
style: FilledButton.styleFrom(
backgroundColor: context.inverseSurface,
),
onPressed: onPressed,
child: Icon(iconData, size: 18.sp),
);
}
}