mirror of
https://github.com/foss42/apidash.git
synced 2025-05-23 09:17:04 +08:00
fix: review changes
This commit is contained in:
23
lib/widgets/button_clear_response.dart
Normal file
23
lib/widgets/button_clear_response.dart
Normal file
@ -0,0 +1,23 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:apidash/consts.dart';
|
||||
|
||||
class ClearResponseButton extends StatelessWidget {
|
||||
const ClearResponseButton({
|
||||
super.key,
|
||||
this.onPressed,
|
||||
});
|
||||
|
||||
final VoidCallback? onPressed;
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return IconButton(
|
||||
tooltip: kTooltipClearResponse,
|
||||
onPressed: onPressed,
|
||||
icon: const Icon(
|
||||
Icons.delete,
|
||||
size: 16,
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user