flutter_undo 0.0.3 icon indicating copy to clipboard operation
flutter_undo: ^0.0.3 copied to clipboard

PlatformiOS

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
100
pub points
0%
popularity

Publisher

verified publisher icontwinsun.dev

This package provides a mechanism to interact with UndoManager on iOS

Repository (GitHub)

Documentation

API reference

License

Icon for licenses.ISC (LICENSE)

Dependencies

flutter, logging

More

Packages that depend on flutter_undo