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