47 lines
1.4 KiB
Dart
47 lines
1.4 KiB
Dart
|
|
import 'package:fcs/pages/widgets/local_text.dart';
|
||
|
|
import 'package:flutter/material.dart';
|
||
|
|
import 'package:flutter_vector_icons/flutter_vector_icons.dart';
|
||
|
|
|
||
|
|
import '../../helpers/theme.dart';
|
||
|
|
|
||
|
|
class ContinueButton extends StatelessWidget {
|
||
|
|
final String? labelKey;
|
||
|
|
final Function()? onTap;
|
||
|
|
const ContinueButton({Key? key, this.onTap, this.labelKey}) : super(key: key);
|
||
|
|
|
||
|
|
@override
|
||
|
|
Widget build(BuildContext context) {
|
||
|
|
return InkWell(
|
||
|
|
onTap: onTap,
|
||
|
|
child: Container(
|
||
|
|
alignment: Alignment.bottomRight,
|
||
|
|
height: 45,
|
||
|
|
width: 130,
|
||
|
|
decoration: BoxDecoration(
|
||
|
|
color: primaryColor,
|
||
|
|
borderRadius: BorderRadius.circular(5),
|
||
|
|
),
|
||
|
|
child: TextButton(
|
||
|
|
onPressed: null,
|
||
|
|
child: Row(
|
||
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
||
|
|
children: <Widget>[
|
||
|
|
Flexible(
|
||
|
|
child: LocalText(
|
||
|
|
context, labelKey == null ? 'btn.continue' : labelKey!,
|
||
|
|
color: Colors.white, fontSize: 15),
|
||
|
|
),
|
||
|
|
const SizedBox(
|
||
|
|
width: 5,
|
||
|
|
),
|
||
|
|
const Icon(
|
||
|
|
Feather.arrow_right_circle,
|
||
|
|
color: Colors.white,
|
||
|
|
),
|
||
|
|
],
|
||
|
|
),
|
||
|
|
),
|
||
|
|
));
|
||
|
|
}
|
||
|
|
}
|