You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
905 B
Dart
32 lines
905 B
Dart
import 'package:diplomaticquarterapp/theme/colors.dart';
|
|
import 'package:diplomaticquarterapp/uitl/translations_delegate_base.dart';
|
|
import 'package:diplomaticquarterapp/widgets/buttons/defaultButton.dart';
|
|
import 'package:flutter/material.dart';
|
|
|
|
class StartButton extends StatelessWidget {
|
|
final void Function() onPressed;
|
|
final bool disabled;
|
|
|
|
const StartButton({
|
|
Key? key,
|
|
required this.onPressed,
|
|
required this.disabled,
|
|
}) : super(key: key);
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Padding(
|
|
padding: const EdgeInsets.only(right: 16.0, left: 16, bottom: 12),
|
|
child: DefaultButton(
|
|
TranslationBase.of(context).start,
|
|
(disabled)
|
|
? null
|
|
: () {
|
|
if (!disabled) onPressed();
|
|
},
|
|
color: Colors.black,
|
|
disabledColor: Colors.grey,
|
|
));
|
|
}
|
|
}
|