Flutter upgrade

This commit is contained in:
Hillel Coren 2023-12-07 17:42:28 +02:00
parent e3f1f052df
commit 980109da7b
3 changed files with 10 additions and 1 deletions

View File

@ -1,5 +1,4 @@
// Flutter imports: // Flutter imports:
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
// Package imports: // Package imports:

View File

@ -341,6 +341,7 @@ class _ExampleEditorState extends State<ExampleEditor> {
); );
} }
/*
Widget _buildCornerFabs() { Widget _buildCornerFabs() {
return Padding( return Padding(
padding: const EdgeInsets.only(right: 16, bottom: 16), padding: const EdgeInsets.only(right: 16, bottom: 16),
@ -404,6 +405,7 @@ class _ExampleEditorState extends State<ExampleEditor> {
), ),
); );
} }
*/
Widget _buildEditor(BuildContext context) { Widget _buildEditor(BuildContext context) {
final isLight = Theme.of(context).brightness == Brightness.light; final isLight = Theme.of(context).brightness == Brightness.light;

View File

@ -104,6 +104,7 @@ class _EditorToolbarState extends State<EditorToolbar> {
super.dispose(); super.dispose();
} }
/*
/// Returns true if the currently selected text node is capable of being /// Returns true if the currently selected text node is capable of being
/// transformed into a different type text node, returns false if /// transformed into a different type text node, returns false if
/// multiple nodes are selected, no node is selected, or the selected /// multiple nodes are selected, no node is selected, or the selected
@ -260,6 +261,7 @@ class _EditorToolbarState extends State<EditorToolbar> {
return null; return null;
} }
} }
*/
/// Toggles bold styling for the current selected text. /// Toggles bold styling for the current selected text.
void _toggleBold() { void _toggleBold() {
@ -434,6 +436,7 @@ class _EditorToolbarState extends State<EditorToolbar> {
return SpanRange(startOffset, endOffset); return SpanRange(startOffset, endOffset);
} }
/*
/// Changes the alignment of the current selected text node /// Changes the alignment of the current selected text node
/// to reflect [newAlignment]. /// to reflect [newAlignment].
void _changeAlignment(TextAlign? newAlignment) { void _changeAlignment(TextAlign? newAlignment) {
@ -490,6 +493,7 @@ class _EditorToolbarState extends State<EditorToolbar> {
return 'Unordered List Item'; return 'Unordered List Item';
} }
} }
*/
void _onPerformAction(TextInputAction action) { void _onPerformAction(TextInputAction action) {
if (action == TextInputAction.done) { if (action == TextInputAction.done) {
@ -733,6 +737,7 @@ class _EditorToolbarState extends State<EditorToolbar> {
); );
} }
/*
Widget _buildVerticalDivider() { Widget _buildVerticalDivider() {
return Container( return Container(
width: 1, width: 1,
@ -754,8 +759,10 @@ class _EditorToolbarState extends State<EditorToolbar> {
return Icons.format_align_justify; return Icons.format_align_justify;
} }
} }
*/
} }
/*
enum _TextType { enum _TextType {
header1, header1,
header2, header2,
@ -765,6 +772,7 @@ enum _TextType {
orderedListItem, orderedListItem,
unorderedListItem, unorderedListItem,
} }
*/
/// Small toolbar that is intended to display over an image and /// Small toolbar that is intended to display over an image and
/// offer controls to expand or contract the size of the image. /// offer controls to expand or contract the size of the image.