mirror of
https://github.com/Xevion/paperless-mobile.git
synced 2025-12-16 14:12:41 -06:00
feat: Add improved date input
This commit is contained in:
@@ -129,7 +129,7 @@ class AppDrawer extends StatelessWidget {
|
||||
),
|
||||
onTap: () {
|
||||
launchUrlString(
|
||||
'https://github.com/astubenbord/paperless-mobile/issues/new',
|
||||
'https://github.com/astubenbord/paperless-mobile/issues/new?assignees=astubenbord&labels=bug%2Ctriage&projects=&template=bug-report.yml&title=%5BBug%5D%3A+',
|
||||
mode: LaunchMode.externalApplication,
|
||||
);
|
||||
},
|
||||
|
||||
@@ -413,28 +413,16 @@ class _DocumentEditPageState extends State<DocumentEditPage> {
|
||||
|
||||
Widget _buildCreatedAtFormField(
|
||||
DateTime? initialCreatedAtDate, FieldSuggestions? filteredSuggestions) {
|
||||
// return FormBuilderLocalizedDatePicker(
|
||||
// name: fkCreatedDate,
|
||||
// initialValue: initialCreatedAtDate,
|
||||
// labelText: S.of(context)!.createdAt,
|
||||
// firstDate: DateTime(1970, 1, 1),
|
||||
// lastDate: DateTime.now(),
|
||||
// locale: Localizations.localeOf(context),
|
||||
// prefixIcon: Icon(Icons.calendar_today),
|
||||
// );
|
||||
return Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
FormBuilderDateTimePicker(
|
||||
inputType: InputType.date,
|
||||
FormBuilderLocalizedDatePicker(
|
||||
name: fkCreatedDate,
|
||||
decoration: InputDecoration(
|
||||
prefixIcon: const Icon(Icons.calendar_month_outlined),
|
||||
label: Text(S.of(context)!.createdAt),
|
||||
),
|
||||
initialValue: initialCreatedAtDate,
|
||||
format: DateFormat.yMMMMd(Localizations.localeOf(context).toString()),
|
||||
initialEntryMode: DatePickerEntryMode.calendar,
|
||||
labelText: S.of(context)!.createdAt,
|
||||
firstDate: DateTime(1970, 1, 1),
|
||||
lastDate: DateTime.now(),
|
||||
locale: Localizations.localeOf(context),
|
||||
prefixIcon: Icon(Icons.calendar_today),
|
||||
),
|
||||
if (filteredSuggestions?.hasSuggestedDates ?? false)
|
||||
_buildSuggestionsSkeleton<DateTime>(
|
||||
|
||||
Reference in New Issue
Block a user