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

outdated

A plugin for ACTION_PROCESS_TEXT in flutter for android.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'dart:async';
import 'package:action_process_text/action_process_text.dart';

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

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

class _MyAppState extends State<MyApp> {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: MainPage(),
    );
  }
}

class MainPage extends StatefulWidget {
  @override
  _MainPageState createState() => _MainPageState();
}

class _MainPageState extends State<MainPage> {
  _MainPageState() {
    initActionProcessText();
  }

  Future<void> initActionProcessText() async {
    inputText = await ActionProcessText.getInputText;
    setState(() {});
  }

  String inputText = '';

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: const Text('Plugin example app'),
      ),
      body: Center(
        child: Text('Copied Text: $inputText\n'),
      ),
    );
  }
}
29
likes
0
pub points
20%
popularity

Publisher

unverified uploader

A plugin for ACTION_PROCESS_TEXT in flutter for android.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on action_process_text