24 lines
748 B
Dart
24 lines
748 B
Dart
|
import 'package:ambito/src/extensions/extensions.dart';
|
||
|
import 'package:flutter/material.dart';
|
||
|
|
||
|
import '../../packages/ambito_theme/ambito_theme.dart';
|
||
|
import 'outline_button.dart';
|
||
|
|
||
|
class UploadImageButton extends StatelessWidget {
|
||
|
final VoidCallback onPressed;
|
||
|
|
||
|
const UploadImageButton({super.key, required this.onPressed});
|
||
|
|
||
|
@override
|
||
|
Widget build(BuildContext context) {
|
||
|
final AmbitoTheme theme = getTheme(context);
|
||
|
return WidgetOutlineButton(
|
||
|
onPressed: onPressed,
|
||
|
title: context.translate('page.general.buttons.upload_image'),
|
||
|
backgroundColor: theme.currentColorScheme.secondary,
|
||
|
foregroundColor: theme.currentColorScheme.onPrimary,
|
||
|
borderColor: theme.currentColorScheme.secondary,
|
||
|
);
|
||
|
}
|
||
|
}
|