Last active
February 19, 2024 11:45
-
-
Save medaminebt/4dd11a8de9505cd95c5390f95701f223 to your computer and use it in GitHub Desktop.
FF Fixing PUBSPEC.YAML DownGrading Flutter <4
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: expandy_nav | |
description: A new Flutter project. | |
publish_to: 'none' | |
version: 1.0.0+1 | |
/* | |
environment: | |
sdk: ">=3.0.0 <4.0.0" | |
*/ | |
environment: | |
sdk: '>=2.19.2 <3.0.0' | |
dependencies: | |
flutter: | |
sdk: flutter | |
flutter_localizations: | |
sdk: flutter | |
auto_size_text: ^3.0.0 # Check for compatibility and updates | |
cached_network_image: ^3.2.1 | |
flutter_animate: ^4.1.1+1 | |
flutter_cache_manager: ^3.3.0 | |
font_awesome_flutter: ^10.1.0 | |
from_css_color: ^2.0.0 | |
go_router: ^7.1.1 | |
google_fonts: ^4.0.3 | |
json_path: ^0.4.1 | |
page_transition: ^2.0.4 | |
path_provider: ^2.0.14 | |
path_provider_android: ^2.0.25 | |
path_provider_foundation: ^2.2.2 | |
path_provider_platform_interface: ^2.0.6 | |
provider: ^6.0.4 | |
shared_preferences: ^2.0.15 | |
shared_preferences_android: ^2.1.0 | |
shared_preferences_ios: ^2.1.1 | |
shared_preferences_platform_interface: ^2.2.0 | |
shared_preferences_web: ^2.1.0 | |
sqflite: ^2.2.6 | |
timeago: ^3.2.2 | |
url_launcher: ^6.1.10 | |
url_launcher_android: ^6.0.27 | |
url_launcher_ios: ^6.1.4 | |
url_launcher_platform_interface: ^2.1.2 | |
####################### Updated (these) ########################### | |
flutter_native_splash: ^2.2.9 | |
xml: ^6.1.0 | |
universal_io: ^2.1.0 | |
intl: ^0.17.0 | |
####################### Updated (these) ########################### | |
cupertino_icons: ^1.0.0 | |
dev_dependencies: | |
flutter_test: | |
sdk: flutter | |
flutter: | |
uses-material-design: true | |
assets: | |
- assets/fonts/ | |
- assets/images/ | |
- assets/videos/ | |
- assets/audios/ | |
- assets/lottie_animations/ | |
- assets/rive_animations/ | |
- assets/pdfs/ |
Author
medaminebt
commented
Feb 19, 2024
HTML EDITOR WITH PRINT ON CMD !
import 'package:flutter/material.dart';
import 'package:html_editor_enhanced/html_editor.dart';
class OldCustomHtmlEditor extends StatefulWidget {
const OldCustomHtmlEditor({super.key});
@override
State<OldCustomHtmlEditor> createState() => _OldCustomHtmlEditorState();
}
class _OldCustomHtmlEditorState extends State<OldCustomHtmlEditor> {
final HtmlEditorController controller = HtmlEditorController();
void _printCurrentContent() async {
String? currentText = await controller.getText();
print(currentText ?? 'No content');
}
@override
Widget build(BuildContext context) {
return Column(
children: [
ElevatedButton(
onPressed: _printCurrentContent,
child: const Text('Get HTML Content'),
),
Expanded(
child: HtmlEditor(
controller: controller,
htmlToolbarOptions: HtmlToolbarOptions(
textStyle: Theme.of(context).textTheme.titleLarge,
toolbarPosition: ToolbarPosition.aboveEditor,
toolbarType: ToolbarType.nativeGrid,
defaultToolbarButtons: [
const StyleButtons(),
const FontButtons(),
const ColorButtons(),
const ParagraphButtons(),
const ListButtons(),
const InsertButtons(
link: true,
picture: true,
video: false,
hr: true,
),
const OtherButtons(
fullscreen: true,
codeview: true,
copy: true,
paste: true,
),
],
),
otherOptions: const OtherOptions(
height: 700,
),
htmlEditorOptions: HtmlEditorOptions(
hint: "Your text here...",
initialText: "<p>Initial text content</p>",
),
),
),
],
);
}
}
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment