| 12345678910111213141516171819202122232425262728293031323334353637 |
- import 'package:flutter/material.dart';
- import 'package:flutter/src/widgets/framework.dart';
- import 'package:flutter/src/widgets/placeholder.dart';
- import 'package:flutter_auth/models/config.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,
- ),
- ),
- )
- ],
- );
- }
- }
|