forked from eatvio/eatvio_app
31 lines
698 B
Dart
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,
|
|
),
|
|
),
|
|
),
|
|
);
|
|
}
|
|
}
|