47 lines
1.3 KiB
Dart
47 lines
1.3 KiB
Dart
import 'package:didvan/pages/authentication/widgets/authentication_app_bar.dart';
|
|
import 'package:didvan/widgets/logos/didvan_horizontal_logo.dart';
|
|
import 'package:flutter/material.dart';
|
|
|
|
class AuthenticationLayout extends StatelessWidget {
|
|
final List<Widget> children;
|
|
final String? appBarTitle;
|
|
|
|
const AuthenticationLayout(
|
|
{Key? key, required this.children, this.appBarTitle})
|
|
: super(key: key);
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return SingleChildScrollView(
|
|
padding: const EdgeInsets.symmetric(horizontal: 20),
|
|
child: SizedBox(
|
|
height: MediaQuery.of(context).size.height,
|
|
child: Column(
|
|
children: [
|
|
if (appBarTitle != null)
|
|
AuthenticationAppBar(
|
|
title: appBarTitle,
|
|
),
|
|
if (appBarTitle == null)
|
|
const SizedBox(
|
|
height: 66,
|
|
),
|
|
const Padding(
|
|
padding: EdgeInsets.only(
|
|
top: 44,
|
|
left: 100,
|
|
right: 100,
|
|
bottom: 40,
|
|
),
|
|
child: DidvanVerticalLogo(
|
|
height: 200,
|
|
),
|
|
),
|
|
...children,
|
|
],
|
|
),
|
|
),
|
|
);
|
|
}
|
|
}
|