Files
eatvio_app/lib/widgets/app_bar/appbar_subtitle.dart
2024-09-11 16:22:12 +03:00

31 lines
698 B
Dart

import 'package:eatvio_app/theme/custom_text_style.dart';
import 'package:eatvio_app/theme/theme_helper.dart';
import 'package:flutter/material.dart';
class AppbarSubtitle extends StatelessWidget {
const AppbarSubtitle({
required this.text,
this.margin,
this.onTap,
});
final String text;
final EdgeInsetsGeometry? margin;
final Function? onTap;
@override
Widget build(BuildContext context) {
return GestureDetector(
child: Padding(
padding: margin ?? EdgeInsets.zero,
child: Text(
text,
style: CustomTextStyles.titleMediumBlack.copyWith(
color: appTheme.black900,
),
),
),
);
}
}