selectFile static method
Implementation
static Row selectFile(
FormFieldState<List<String>> state,
int? maxSize,
List<String>? types,
) {
return Row(
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[
Column(
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[
RawMaterialButton(
onPressed: () => _handleFilePickUp(state, maxSize, types),
fillColor: backdropColor.withValues(alpha: .8),
highlightColor: backdropColor.withValues(alpha: .8),
splashColor: backdropColor.withValues(alpha: .8),
padding: const EdgeInsets.all(20),
shape: const CircleBorder(),
child: const Icon(
Icons.file_upload_outlined,
size: 25,
color: whiteColor,
),
),
const SizedBox(height: 5),
const Text("Search file", style: smallMutedText),
],
),
],
);
}