mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2025-08-03 14:30:29 +00:00

* chore: remove use of svgWidget() * refactor: redundant code in svg * feat: add generator to generate flowy_svgs.g.dart * chore: reference new package in pubspec * chore: remove svg widget from flowy_infra * refactor: update usage in flowy_infra_ui * refactor: usage in appflowy_flutter * fix: error with script not running * fix: error with script not running * fix: use unix style file path * feat: use generation script for flowy svgs * feat: add task * fix: add required missing semicolon * fix: rebase errors * feat: update generate build script * fix: solve duplicate entries in the generated file * fix: compilation errors * fix: replace all spaces with an underscore * feat: use FlowySvgs * feat: reduce assets and simplify * refactor: do not return empty svg widget * fix: rebase errors * fix: analyzer warnings * chore: remove flowy_icons from tracking * chore: fix generate flowy icons script linux * chore: macos/linux script * chore: add rsync --------- Co-authored-by: Mathias Mogensen <mathiasrieckm@gmail.com> Co-authored-by: Mathias Mogensen <mathias@appflowy.io>
62 lines
1.6 KiB
Dart
62 lines
1.6 KiB
Dart
import 'dart:math';
|
|
|
|
import 'package:appflowy/generated/flowy_svgs.g.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';
|
|
import 'package:google_fonts/google_fonts.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: const FlowySvg(FlowySvgs.flowy_logo_xl),
|
|
),
|
|
const VSpace(40),
|
|
FlowyText.regular(
|
|
title,
|
|
fontSize: FontSizes.s24,
|
|
fontFamily:
|
|
GoogleFonts.poppins(fontWeight: FontWeight.w500).fontFamily,
|
|
color: Theme.of(context).colorScheme.tertiary,
|
|
),
|
|
],
|
|
),
|
|
);
|
|
}
|
|
}
|