update deprecated
This commit is contained in:
@@ -80,7 +80,6 @@ class BasicDemo extends StatelessWidget {
|
||||
// You can return a Link (maybe you need to upload the image to your
|
||||
// storage before displaying in the editor or you can also use base64
|
||||
getImageUrl: (image) {
|
||||
String link = 'https://avatars.githubusercontent.com/u/24323581?v=4';
|
||||
String base64 = base64Encode(image.readAsBytesSync());
|
||||
String base64String = 'data:image/png;base64, $base64';
|
||||
return base64String;
|
||||
|
||||
@@ -93,7 +93,6 @@ class _CustomToolbarDemoState extends State<CustomToolbarDemo> {
|
||||
// You can return a Link (maybe you need to upload the image to your
|
||||
// storage before displaying in the editor or you can also use base64
|
||||
getImageUrl: (image) {
|
||||
String link = 'https://avatars.githubusercontent.com/u/24323581?v=4';
|
||||
String base64 = base64Encode(image.readAsBytesSync());
|
||||
String base64String = 'data:image/png;base64, $base64';
|
||||
return base64String;
|
||||
|
||||
@@ -1,9 +1,6 @@
|
||||
import 'dart:convert';
|
||||
|
||||
import 'package:example/basic.dart';
|
||||
import 'package:example/custom_toolbar_demo.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:rich_editor/rich_editor.dart';
|
||||
|
||||
void main() {
|
||||
runApp(MyApp());
|
||||
|
||||
Reference in New Issue
Block a user