Files
fcs/lib/pages/widgets/previous_button.dart

43 lines
1.2 KiB
Dart
Raw Normal View History

2024-02-01 18:07:40 +06:30
import 'package:flutter/material.dart';
import 'package:flutter_vector_icons/flutter_vector_icons.dart';
import '../../helpers/theme.dart';
import 'local_text.dart';
class PreviousButton extends StatelessWidget {
final Function()? onTap;
const PreviousButton({Key? key, this.onTap}) : super(key: key);
@override
Widget build(BuildContext context) {
return InkWell(
onTap: onTap,
child: Container(
alignment: Alignment.bottomRight,
height: 45,
width: 130,
decoration: BoxDecoration(
color: Colors.white,
borderRadius: BorderRadius.circular(5),
border: Border.all(color: primaryColor)),
child: TextButton(
onPressed: null,
child: Row(
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[
const Icon(
Feather.arrow_left_circle,
color: primaryColor,
),
const SizedBox(width: 10),
Flexible(
child: LocalText(context, 'btn.previous',
color: primaryColor, fontSize: 15),
)
],
),
),
));
}
}