Flutter upgrade
This commit is contained in:
parent
e3f1f052df
commit
980109da7b
|
|
@ -1,5 +1,4 @@
|
|||
// Flutter imports:
|
||||
import 'package:flutter/foundation.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
// Package imports:
|
||||
|
|
|
|||
|
|
@ -341,6 +341,7 @@ class _ExampleEditorState extends State<ExampleEditor> {
|
|||
);
|
||||
}
|
||||
|
||||
/*
|
||||
Widget _buildCornerFabs() {
|
||||
return Padding(
|
||||
padding: const EdgeInsets.only(right: 16, bottom: 16),
|
||||
|
|
@ -404,6 +405,7 @@ class _ExampleEditorState extends State<ExampleEditor> {
|
|||
),
|
||||
);
|
||||
}
|
||||
*/
|
||||
|
||||
Widget _buildEditor(BuildContext context) {
|
||||
final isLight = Theme.of(context).brightness == Brightness.light;
|
||||
|
|
|
|||
|
|
@ -104,6 +104,7 @@ class _EditorToolbarState extends State<EditorToolbar> {
|
|||
super.dispose();
|
||||
}
|
||||
|
||||
/*
|
||||
/// Returns true if the currently selected text node is capable of being
|
||||
/// transformed into a different type text node, returns false if
|
||||
/// multiple nodes are selected, no node is selected, or the selected
|
||||
|
|
@ -260,6 +261,7 @@ class _EditorToolbarState extends State<EditorToolbar> {
|
|||
return null;
|
||||
}
|
||||
}
|
||||
*/
|
||||
|
||||
/// Toggles bold styling for the current selected text.
|
||||
void _toggleBold() {
|
||||
|
|
@ -434,6 +436,7 @@ class _EditorToolbarState extends State<EditorToolbar> {
|
|||
return SpanRange(startOffset, endOffset);
|
||||
}
|
||||
|
||||
/*
|
||||
/// Changes the alignment of the current selected text node
|
||||
/// to reflect [newAlignment].
|
||||
void _changeAlignment(TextAlign? newAlignment) {
|
||||
|
|
@ -490,6 +493,7 @@ class _EditorToolbarState extends State<EditorToolbar> {
|
|||
return 'Unordered List Item';
|
||||
}
|
||||
}
|
||||
*/
|
||||
|
||||
void _onPerformAction(TextInputAction action) {
|
||||
if (action == TextInputAction.done) {
|
||||
|
|
@ -733,6 +737,7 @@ class _EditorToolbarState extends State<EditorToolbar> {
|
|||
);
|
||||
}
|
||||
|
||||
/*
|
||||
Widget _buildVerticalDivider() {
|
||||
return Container(
|
||||
width: 1,
|
||||
|
|
@ -754,8 +759,10 @@ class _EditorToolbarState extends State<EditorToolbar> {
|
|||
return Icons.format_align_justify;
|
||||
}
|
||||
}
|
||||
*/
|
||||
}
|
||||
|
||||
/*
|
||||
enum _TextType {
|
||||
header1,
|
||||
header2,
|
||||
|
|
@ -765,6 +772,7 @@ enum _TextType {
|
|||
orderedListItem,
|
||||
unorderedListItem,
|
||||
}
|
||||
*/
|
||||
|
||||
/// Small toolbar that is intended to display over an image and
|
||||
/// offer controls to expand or contract the size of the image.
|
||||
|
|
|
|||
Loading…
Reference in New Issue