flutter_undo 0.0.1 copy "flutter_undo: ^0.0.1" to clipboard
flutter_undo: ^0.0.1 copied to clipboard

outdated

This package provides a mechanism to interact with UndoManager on iOS

example/lib/main.dart

import 'package:flutter/material.dart';

import 'package:flutter/services.dart';
import 'package:flutter_undo/flutter_undo.dart';

void main() {
  runApp(MyApp());
}

class MyApp extends StatefulWidget {
  @override
  _MyAppState createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  TextEditingController controller;
  FocusNode focusNode = FocusNode();

  @override
  void initState() {
    super.initState();
    controller = TextEditingController.fromValue(TextEditingValue(text: 'Hello, Undoable!'));
  }

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: const Text('Flutter Undo Example'),
        ),
        body: Center(
          child: UndoableTextElement(
            controller: controller,
            focusNode: focusNode,
            child: TextField(controller: controller, focusNode: focusNode),
          ),
        ),
      ),
    );
  }
}
0
likes
0
pub points
0%
popularity

Publisher

verified publishertwinsun.dev

This package provides a mechanism to interact with UndoManager on iOS

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter, logging

More

Packages that depend on flutter_undo