123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- import 'package:flowy_infra/image.dart';
- import 'package:flowy_infra/theme.dart';
- import 'package:flowy_infra_ui/widget/spacing.dart';
- import 'package:flutter/material.dart';
- import 'package:provider/provider.dart';
- class SignInFormContainer extends StatelessWidget {
- final List<Widget> children;
- const SignInFormContainer({
- Key? key,
- required this.children,
- }) : super(key: key);
- @override
- Widget build(BuildContext context) {
- final size = MediaQuery.of(context).size;
- return SizedBox(
- width: size.width * 0.3,
- child: Column(
- mainAxisAlignment: MainAxisAlignment.center,
- children: children,
- ),
- );
- }
- }
- class SignInTitle extends StatelessWidget {
- final String title;
- final Size logoSize;
- const SignInTitle({
- Key? key,
- required this.title,
- required this.logoSize,
- }) : super(key: key);
- @override
- Widget build(BuildContext context) {
- final theme = context.watch<AppTheme>();
- return SizedBox(
- child: Column(
- mainAxisAlignment: MainAxisAlignment.center,
- children: [
- svgWidgetWithName("small_logo.svg"),
- const VSpace(30),
- Text(
- title,
- style: TextStyle(
- color: theme.shader1,
- fontWeight: FontWeight.w600,
- fontSize: 24,
- ),
- )
- ],
- ),
- );
- }
- }
|