28 lines
690 B
Dart
28 lines
690 B
Dart
import 'package:flutter/material.dart';
|
|
|
|
import 'package:pweb/utils/text_field_styles.dart';
|
|
|
|
import 'package:pweb/generated/i18n/app_localizations.dart';
|
|
|
|
|
|
class OwnerField extends StatelessWidget {
|
|
final String? value;
|
|
final List<DropdownMenuItem<String?>> items;
|
|
final ValueChanged<String?>? onChanged;
|
|
|
|
const OwnerField({
|
|
super.key,
|
|
required this.value,
|
|
required this.items,
|
|
required this.onChanged,
|
|
});
|
|
|
|
@override
|
|
Widget build(BuildContext context) => DropdownButtonFormField<String?>(
|
|
initialValue: value,
|
|
decoration: getInputDecoration(context, AppLocalizations.of(context)!.assetOwner, true),
|
|
items: items,
|
|
onChanged: onChanged,
|
|
);
|
|
}
|