mirror of
https://github.com/SyncrowIOT/syncrow-app.git
synced 2026-10-23 18:17:56 +00:00
51 lines
1.4 KiB
Dart
51 lines
1.4 KiB
Dart
import 'package:flutter/material.dart';
|
|
import 'package:syncrow_app/features/shared_widgets/default_text_button.dart';
|
|
import 'package:syncrow_app/features/shared_widgets/syncrow_logo.dart';
|
|
|
|
import '../../../../navigation/routing_constants.dart';
|
|
|
|
class AuthViewBody extends StatelessWidget {
|
|
const AuthViewBody({
|
|
super.key,
|
|
});
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Padding(
|
|
padding: const EdgeInsets.symmetric(horizontal: 40.0),
|
|
child: Column(
|
|
crossAxisAlignment: CrossAxisAlignment.stretch,
|
|
children: [
|
|
const Expanded(child: SizedBox()),
|
|
const SyncrowLogo(),
|
|
const Expanded(flex: 2, child: SizedBox()),
|
|
DefaultTextButton(
|
|
text: 'Login',
|
|
onPressed: () {
|
|
Navigator.popAndPushNamed(context, Routes.homeRoute);
|
|
},
|
|
),
|
|
const SizedBox(height: 15),
|
|
const DefaultTextButton(
|
|
text: 'Sign Up',
|
|
isSecondary: true,
|
|
),
|
|
const SizedBox(height: 20),
|
|
Center(
|
|
child: InkWell(
|
|
onTap: () {},
|
|
child: const Text(
|
|
'Try as a Guest',
|
|
style: TextStyle(
|
|
color: Colors.grey,
|
|
),
|
|
),
|
|
),
|
|
),
|
|
const SizedBox(height: 30),
|
|
],
|
|
),
|
|
);
|
|
}
|
|
}
|