mirror of
https://github.com/ente-io/ente.git
synced 2025-08-13 09:47:17 +00:00
Move into mobile/
This commit is contained in:
20
mobile/lib/ui/components/buttons/inline_button_widget.dart
Normal file
20
mobile/lib/ui/components/buttons/inline_button_widget.dart
Normal file
@@ -0,0 +1,20 @@
|
||||
import "package:flutter/cupertino.dart";
|
||||
import "package:photos/theme/ente_theme.dart";
|
||||
|
||||
class InlineButtonWidget extends StatelessWidget {
|
||||
final String label;
|
||||
final VoidCallback? onTap;
|
||||
final TextStyle? textStyle;
|
||||
const InlineButtonWidget(this.label, this.onTap, {this.textStyle, super.key});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return GestureDetector(
|
||||
onTap: onTap?.call,
|
||||
child: Text(
|
||||
label,
|
||||
style: textStyle ?? getEnteTextTheme(context).smallMuted,
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user