You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
667 B
Dart
29 lines
667 B
Dart
import 'package:flutter/material.dart';
|
|
|
|
class BackHomeButton extends StatelessWidget {
|
|
final void Function() onPressed;
|
|
final Size deviceSize;
|
|
|
|
const BackHomeButton({
|
|
Key? key,
|
|
required this.onPressed,
|
|
required this.deviceSize,
|
|
}) : super(key: key);
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Align(
|
|
alignment: Alignment.topLeft,
|
|
child: Container(
|
|
margin: EdgeInsets.fromLTRB(15, deviceSize.height * 0.05, 0, 0),
|
|
child: IconButton(
|
|
icon: const Icon(Icons.arrow_back),
|
|
color: Colors.white,
|
|
iconSize: 25,
|
|
onPressed: onPressed,
|
|
),
|
|
),
|
|
);
|
|
}
|
|
}
|