forked from eatvio/eatvio_app
36 lines
697 B
Dart
36 lines
697 B
Dart
import 'package:eatvio_app/core/app_export.dart';
|
|
import 'package:flutter/material.dart';
|
|
|
|
// ignore: must_be_immutable
|
|
class AppbarSubtitle extends StatelessWidget {
|
|
AppbarSubtitle({
|
|
Key? key,
|
|
required this.text,
|
|
this.margin,
|
|
this.onTap,
|
|
}) : super(
|
|
key: key,
|
|
);
|
|
|
|
String text;
|
|
|
|
EdgeInsetsGeometry? margin;
|
|
|
|
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,
|
|
),
|
|
),
|
|
),
|
|
);
|
|
}
|
|
}
|