bottom_of_title_bar_widget.dart 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. import 'package:flutter/material.dart';
  2. import 'package:photos/theme/ente_theme.dart';
  3. import 'package:photos/ui/components/title_bar_title_widget.dart';
  4. ///https://www.figma.com/file/SYtMyLBs5SAOkTbfMMzhqt/ente-Visual-Design?node-id=7309%3A29088&t=ReeZ2Big8xSsemZb-4
  5. class BottomOfTitleBarWidget extends StatelessWidget {
  6. final TitleBarTitleWidget? title;
  7. final String? caption;
  8. const BottomOfTitleBarWidget({this.title, this.caption, super.key});
  9. @override
  10. Widget build(BuildContext context) {
  11. return Row(
  12. children: [
  13. Flexible(
  14. child: Padding(
  15. padding: const EdgeInsets.symmetric(horizontal: 16, vertical: 4),
  16. child: Column(
  17. crossAxisAlignment: CrossAxisAlignment.start,
  18. children: [
  19. title ?? const SizedBox.shrink(),
  20. caption != null
  21. ? Text(
  22. caption!,
  23. style: getEnteTextTheme(context).small.copyWith(
  24. color: getEnteColorScheme(context).textMuted,
  25. ),
  26. )
  27. : const SizedBox.shrink(),
  28. ],
  29. ),
  30. ),
  31. ),
  32. ],
  33. );
  34. }
  35. }