flowy_logo_title.dart 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. import 'package:appflowy/generated/flowy_svgs.g.dart';
  2. import 'package:flowy_infra/size.dart';
  3. import 'package:flowy_infra_ui/flowy_infra_ui.dart';
  4. import 'package:flutter/material.dart';
  5. import 'package:google_fonts/google_fonts.dart';
  6. class FlowyLogoTitle extends StatelessWidget {
  7. final String title;
  8. final Size logoSize;
  9. const FlowyLogoTitle({
  10. super.key,
  11. required this.title,
  12. this.logoSize = const Size.square(40),
  13. });
  14. @override
  15. Widget build(BuildContext context) {
  16. return SizedBox(
  17. child: Column(
  18. mainAxisAlignment: MainAxisAlignment.center,
  19. children: [
  20. SizedBox.fromSize(
  21. size: logoSize,
  22. child: const FlowySvg(
  23. FlowySvgs.flowy_logo_xl,
  24. blendMode: null,
  25. ),
  26. ),
  27. const VSpace(40),
  28. FlowyText.regular(
  29. title,
  30. fontSize: FontSizes.s24,
  31. fontFamily:
  32. GoogleFonts.poppins(fontWeight: FontWeight.w500).fontFamily,
  33. color: Theme.of(context).colorScheme.tertiary,
  34. ),
  35. ],
  36. ),
  37. );
  38. }
  39. }