13 lines
417 B
Dart
13 lines
417 B
Dart
import 'package:flutter/material.dart';
|
|
import 'package:flutter/src/widgets/framework.dart';
|
|
import 'package:flutter/src/widgets/placeholder.dart';
|
|
|
|
class CloseLeading extends StatelessWidget {
|
|
final Function() onPressed;
|
|
const CloseLeading({super.key, required this.onPressed});
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return IconButton(onPressed: onPressed, icon: const Icon(Icons.close));
|
|
}
|
|
} |