mirror of
https://github.com/Iconica-Development/flutter_media_picker.git
synced 2025-05-18 16:33:45 +02:00
fix: changed language to English
This commit is contained in:
parent
ef3a839b7f
commit
7952b3af89
6 changed files with 23 additions and 20 deletions
|
@ -17,11 +17,11 @@ class MyApp extends StatelessWidget {
|
|||
Widget build(BuildContext context) {
|
||||
return ProviderScope(
|
||||
child: MaterialApp(
|
||||
title: 'Flutter Demo',
|
||||
title: 'Media Picker Example',
|
||||
theme: ThemeData(
|
||||
primarySwatch: Colors.blue,
|
||||
),
|
||||
home: const MyHomePage(title: 'Flutter Demo Home Page'),
|
||||
home: const MyHomePage(title: 'Media Picker Example'),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
|
|
@ -49,7 +49,7 @@ class _MediaPickerState extends ConsumerState<MediaPickerPage> {
|
|||
height: 14,
|
||||
),
|
||||
const Text(
|
||||
'Maken',
|
||||
'Create/Pick',
|
||||
style: TextStyle(
|
||||
fontWeight: FontWeight.w900,
|
||||
fontSize: 20,
|
||||
|
@ -63,7 +63,7 @@ class _MediaPickerState extends ConsumerState<MediaPickerPage> {
|
|||
MediaPickerInputPhoto(
|
||||
pickFile: mediaService.pickImageFile,
|
||||
checkPageSettings: {
|
||||
'title': 'Foto delen',
|
||||
'title': 'Share photo',
|
||||
'width': 125.0,
|
||||
'height': 200.0,
|
||||
},
|
||||
|
@ -75,7 +75,7 @@ class _MediaPickerState extends ConsumerState<MediaPickerPage> {
|
|||
pickFile: mediaService.pickVideoFile,
|
||||
videoPlayerFactory: MediaPickerVideoPlayerFactory(),
|
||||
checkPageSettings: {
|
||||
'title': 'Video delen',
|
||||
'title': 'Share video',
|
||||
'width': 122.5,
|
||||
'height': 200.0,
|
||||
},
|
||||
|
@ -85,14 +85,14 @@ class _MediaPickerState extends ConsumerState<MediaPickerPage> {
|
|||
),
|
||||
if (!kIsWeb)
|
||||
MediaPickerInputAudio(
|
||||
checkPageSettings: {'title': 'Audio delen'},
|
||||
checkPageSettings: {'title': 'Share audio'},
|
||||
onComplete: (MediaResult result) {
|
||||
Navigator.pop(context);
|
||||
},
|
||||
audioService: audioService,
|
||||
),
|
||||
MediaPickerInputText(
|
||||
checkPageSettings: {'title': 'Tekst delen'},
|
||||
checkPageSettings: {'title': 'Share text'},
|
||||
onComplete: (MediaResult result) {
|
||||
Navigator.pop(context);
|
||||
},
|
||||
|
@ -107,9 +107,13 @@ class _MediaPickerState extends ConsumerState<MediaPickerPage> {
|
|||
'docx',
|
||||
'bmp',
|
||||
'gif',
|
||||
'txt',
|
||||
],
|
||||
checkPageSettings: {
|
||||
'title': 'Bestand delen',
|
||||
'title': 'Share file',
|
||||
},
|
||||
onComplete: (MediaResult result) {
|
||||
Navigator.pop(context);
|
||||
},
|
||||
),
|
||||
],
|
||||
|
|
|
@ -70,7 +70,7 @@ class _MediaCheckPageState extends State<MediaCheckPage> {
|
|||
widget.cancel();
|
||||
formController.autoNextStep();
|
||||
},
|
||||
child: const Text("Delen"),
|
||||
child: const Text("Share"),
|
||||
),
|
||||
),
|
||||
),
|
||||
|
@ -140,7 +140,7 @@ class _MediaCheckPageState extends State<MediaCheckPage> {
|
|||
),
|
||||
Expanded(
|
||||
child: FlutterFormInputMultiLine(
|
||||
hint: "Voeg omschrijving toe...",
|
||||
hint: "Add description...",
|
||||
maxCharacters: 300,
|
||||
controller: descriptionController),
|
||||
),
|
||||
|
@ -149,7 +149,7 @@ class _MediaCheckPageState extends State<MediaCheckPage> {
|
|||
),
|
||||
FlutterFormInputSwitch(
|
||||
label: const Text(
|
||||
'Deel op je tijdlijn',
|
||||
'Share on time line',
|
||||
style: TextStyle(
|
||||
fontWeight: FontWeight.w500,
|
||||
fontSize: 18,
|
||||
|
@ -162,7 +162,7 @@ class _MediaCheckPageState extends State<MediaCheckPage> {
|
|||
),
|
||||
FlutterFormInputSwitch(
|
||||
label: const Text(
|
||||
'Bewaar in de kluis',
|
||||
'Save in vault',
|
||||
style: TextStyle(
|
||||
fontWeight: FontWeight.w500,
|
||||
fontSize: 18,
|
||||
|
|
|
@ -10,6 +10,8 @@ import 'package:path/path.dart' as path;
|
|||
|
||||
import 'package:flutter_media_picker/src/media_result.dart';
|
||||
|
||||
import '../../flutter_media_picker.dart';
|
||||
|
||||
/// Input for photo used by [MediaPicker].
|
||||
class MediaPickerInputFile implements MediaPickerInput {
|
||||
MediaPickerInputFile({
|
||||
|
@ -59,12 +61,10 @@ class MediaPickerInputFile implements MediaPickerInput {
|
|||
case '.doc':
|
||||
case '.docx':
|
||||
return Text(result.fileName!);
|
||||
case '.txt':
|
||||
return const DisplayText();
|
||||
default:
|
||||
}
|
||||
// return Image.memory(
|
||||
// result.fileValue!,
|
||||
// height: 250,
|
||||
// );
|
||||
}
|
||||
}
|
||||
|
||||
return Container();
|
||||
|
|
|
@ -5,7 +5,6 @@
|
|||
import 'dart:typed_data';
|
||||
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_image_picker/flutter_image_picker.dart';
|
||||
import 'package:flutter_media_picker/src/abstracts/media_picker_input.dart';
|
||||
|
||||
import 'package:flutter_media_picker/src/media_result.dart';
|
||||
|
@ -13,7 +12,7 @@ import 'package:flutter_media_picker/src/media_result.dart';
|
|||
/// Input for photo used by [MediaPicker].
|
||||
class MediaPickerInputPhoto implements MediaPickerInput {
|
||||
MediaPickerInputPhoto({
|
||||
this.label = "Foto",
|
||||
this.label = "Photo",
|
||||
this.checkPageSettings,
|
||||
this.onComplete,
|
||||
this.pickFile,
|
||||
|
|
|
@ -11,7 +11,7 @@ import 'package:hooks_riverpod/hooks_riverpod.dart';
|
|||
/// Input for text used by [MediaPicker].
|
||||
class MediaPickerInputText implements MediaPickerInput {
|
||||
MediaPickerInputText({
|
||||
this.label = "Tekst",
|
||||
this.label = "Text",
|
||||
this.checkPageSettings,
|
||||
this.onComplete,
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue