Nathan.fooo 61fd608200
Feat/view map database (#1885)
* refactor: rename structs

* chore: read database id from view

* chore: fix open database error because of create a database view for database id

* chore: fix tests

* chore: rename datbase id to view id in flutter

* refactor: move grid and board to database view folder

* refactor: rename functions

* refactor: move calender to datbase view folder

* refactor: rename app_flowy to appflowy_flutter

* chore: reanming

* chore: fix freeze gen

* chore: remove todos

* refactor: view process events

* chore: add link database test

* chore: just open view if there is opened database
2023-02-26 16:27:17 +08:00

58 lines
1.3 KiB
Dart

import 'dart:math';
import 'package:flowy_infra/image.dart';
import 'package:flowy_infra/size.dart';
import 'package:flowy_infra_ui/style_widget/text.dart';
import 'package:flowy_infra_ui/widget/spacing.dart';
import 'package:flutter/material.dart';
class AuthFormContainer extends StatelessWidget {
final List<Widget> children;
const AuthFormContainer({
Key? key,
required this.children,
}) : super(key: key);
@override
Widget build(BuildContext context) {
final size = MediaQuery.of(context).size;
return SizedBox(
width: min(size.width, 340),
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: children,
),
);
}
}
class FlowyLogoTitle extends StatelessWidget {
final String title;
final Size logoSize;
const FlowyLogoTitle({
Key? key,
required this.title,
this.logoSize = const Size.square(40),
}) : super(key: key);
@override
Widget build(BuildContext context) {
return SizedBox(
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
SizedBox.fromSize(
size: logoSize,
child: svgWidget("flowy_logo"),
),
const VSpace(30),
FlowyText.semibold(
title,
fontSize: FontSizes.s24,
),
],
),
);
}
}