Yimaru-Mobile/lib/ui/widgets/register_for_account.dart

39 lines
1018 B
Dart
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import 'package:flutter/material.dart';
import '../common/app_colors.dart';
import '../common/ui_helpers.dart';
class RegisterForAccount extends StatelessWidget {
final GestureTapCallback? onTap;
const RegisterForAccount({super.key, this.onTap});
@override
Widget build(BuildContext context) => _buildRow();
Widget _buildRow() => Row(
children: [
_buildLeadingText(),
horizontalSpaceTiny,
_buildRegisterTextButton()
],
);
Widget _buildLeadingText() => const Text(
'Dont have an account? ',
style: TextStyle(color: kcMediumGrey),
);
Widget _buildRegisterTextButton() => TextButton(
onPressed: onTap,
style: const ButtonStyle(
alignment: Alignment.centerLeft,
padding: WidgetStatePropertyAll(EdgeInsets.zero)),
child: _buildRegisterText(),
);
Widget _buildRegisterText() => const Text(
'Register',
style: TextStyle(color: kcPrimaryColor),
);
}