36 lines
935 B
Dart
36 lines
935 B
Dart
import 'package:flutter/material.dart';
|
|
import 'package:piring_baru/components/constants.dart';
|
|
|
|
class AlreadyHaveAnAccountCheck extends StatelessWidget {
|
|
final bool login;
|
|
final Function? press;
|
|
const AlreadyHaveAnAccountCheck({
|
|
Key? key,
|
|
this.login = true,
|
|
required this.press,
|
|
}) : super(key: key);
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Row(
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
children: <Widget>[
|
|
Text(
|
|
login ? "Don't have an Account ? " : "Already have an Account ? ",
|
|
style: const TextStyle(color: kPrimaryColor),
|
|
),
|
|
GestureDetector(
|
|
onTap: press as void Function()?,
|
|
child: Text(
|
|
login ? "Sign Up" : "Sign In",
|
|
style: const TextStyle(
|
|
color: kPrimaryColor,
|
|
fontWeight: FontWeight.bold,
|
|
),
|
|
),
|
|
)
|
|
],
|
|
);
|
|
}
|
|
}
|