28 lines
586 B
Dart
28 lines
586 B
Dart
|
import 'package:flutter/material.dart';
|
||
|
|
||
|
class ReturnButton extends StatelessWidget {
|
||
|
final onPressed;
|
||
|
ReturnButton({
|
||
|
required this.onPressed,
|
||
|
Key? key,})
|
||
|
: super(key: key);
|
||
|
|
||
|
@override
|
||
|
Widget build(BuildContext context) {
|
||
|
return Padding(
|
||
|
padding: const EdgeInsets.only(left: 10),
|
||
|
child: Align(
|
||
|
alignment: Alignment.topLeft,
|
||
|
child: IconButton(
|
||
|
onPressed: onPressed,
|
||
|
icon: const Icon(
|
||
|
Icons.arrow_back,
|
||
|
color: Colors.black,
|
||
|
),
|
||
|
iconSize: 40,
|
||
|
),
|
||
|
),
|
||
|
);
|
||
|
}
|
||
|
}
|