|
|
|
@ -121,7 +121,7 @@ class _HomePageState extends State<HomePage> { |
|
|
|
|
sizeSmall: const TextStyle(fontSize: 9), |
|
|
|
|
), |
|
|
|
|
embedBuilders: [ |
|
|
|
|
...FlutterQuillEmbeds.builders, |
|
|
|
|
...FlutterQuillEmbeds.builders(), |
|
|
|
|
NotesEmbedBuilder(addEditNote: _addEditNote) |
|
|
|
|
], |
|
|
|
|
); |
|
|
|
@ -287,8 +287,7 @@ class _HomePageState extends State<HomePage> { |
|
|
|
|
Future<MediaPickSetting?> _selectCameraPickSetting(BuildContext context) => |
|
|
|
|
showDialog<MediaPickSetting>( |
|
|
|
|
context: context, |
|
|
|
|
builder: (ctx) => |
|
|
|
|
AlertDialog( |
|
|
|
|
builder: (ctx) => AlertDialog( |
|
|
|
|
contentPadding: EdgeInsets.zero, |
|
|
|
|
content: Column( |
|
|
|
|
mainAxisSize: MainAxisSize.min, |
|
|
|
@ -296,14 +295,12 @@ class _HomePageState extends State<HomePage> { |
|
|
|
|
TextButton.icon( |
|
|
|
|
icon: const Icon(Icons.camera), |
|
|
|
|
label: const Text('Capture a photo'), |
|
|
|
|
onPressed: () => |
|
|
|
|
Navigator.pop(ctx, MediaPickSetting.Camera), |
|
|
|
|
onPressed: () => Navigator.pop(ctx, MediaPickSetting.Camera), |
|
|
|
|
), |
|
|
|
|
TextButton.icon( |
|
|
|
|
icon: const Icon(Icons.video_call), |
|
|
|
|
label: const Text('Capture a video'), |
|
|
|
|
onPressed: () => |
|
|
|
|
Navigator.pop(ctx, MediaPickSetting.Video), |
|
|
|
|
onPressed: () => Navigator.pop(ctx, MediaPickSetting.Video), |
|
|
|
|
) |
|
|
|
|
], |
|
|
|
|
), |
|
|
|
@ -412,8 +409,7 @@ class NotesEmbedBuilder implements EmbedBuilder { |
|
|
|
|
QuillController controller, |
|
|
|
|
Embed node, |
|
|
|
|
bool readOnly, |
|
|
|
|
void Function(GlobalKey<State<StatefulWidget>> videoContainerKey)? |
|
|
|
|
onVideoInit) { |
|
|
|
|
) { |
|
|
|
|
final notes = NotesBlockEmbed(node.value.data).document; |
|
|
|
|
|
|
|
|
|
return Material( |
|
|
|
|