Project lint checked and step added to config.yml

This commit is contained in:
2022-10-02 17:43:52 +01:00
parent e07e10079e
commit 8100f0b879
26 changed files with 71 additions and 63 deletions

View File

@@ -0,0 +1,39 @@
import 'package:dropdown_search/dropdown_search.dart';
import 'package:flutter/material.dart';
import '../Utils/constants.dart';
class DropDownBox extends StatelessWidget {
final List<String> _selection;
final String _hintText;
final Function(String?) _onChanged;
const DropDownBox(this._selection, this._hintText, this._onChanged,
{super.key});
@override
Widget build(BuildContext context) {
return Card(
color: colourThree,
elevation: 2,
shape: const RoundedRectangleBorder(
borderRadius: BorderRadius.all(Radius.circular(22))),
child: DropdownSearch<String>(
popupProps: const PopupProps.dialog(
showSearchBox: true,
dialogProps: DialogProps(backgroundColor: colourThree)),
items: _selection,
dropdownDecoratorProps: DropDownDecoratorProps(
dropdownSearchDecoration: InputDecoration(
contentPadding: const EdgeInsets.all(14),
border: InputBorder.none,
filled: true,
fillColor: Colors.transparent,
hintText: _hintText,
),
),
onChanged: _onChanged,
),
);
}
}