rot13 1.0.2 copy "rot13: ^1.0.2" to clipboard
rot13: ^1.0.2 copied to clipboard

Flutter package to encode / decode string to ROT13 (rotate by 13 places)

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:rot13/rot13.dart';

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

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

class _MyAppState extends State<MyApp> {
  String rot13Text = "";
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: Text("ROT 13 Demo"),
        ),
        body: SafeArea(
          child: Column(
            children: [
              TextField(
                onChanged: (txt) {
                  setState(() {
                    rot13Text = rot13(txt);
                  });
                },
              ),
              SizedBox(height: 20),
              Text("Output: $rot13Text")
            ],
          ),
        ),
      ),
    );
  }
}
9
likes
140
pub points
58%
popularity

Publisher

verified publisheraqeelshamz.com

Flutter package to encode / decode string to ROT13 (rotate by 13 places)

Repository (GitHub)
View/report issues

Documentation

API reference

License

unknown (license)

Dependencies

flutter

More

Packages that depend on rot13