Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/aqeelshamz/rot13
Flutter package to encode / decode string to ROT13
https://github.com/aqeelshamz/rot13
Last synced: 27 days ago
JSON representation
Flutter package to encode / decode string to ROT13
- Host: GitHub
- URL: https://github.com/aqeelshamz/rot13
- Owner: aqeelshamz
- License: other
- Created: 2020-11-07T13:01:58.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2022-03-10T17:30:29.000Z (almost 3 years ago)
- Last Synced: 2023-08-20T23:01:04.850Z (over 1 year ago)
- Language: Dart
- Size: 31.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
Flutter package to encode / decode string to ROT13
## Getting Started
To use this plugin, add `rot13` as a [dependency in your pubspec.yaml file](https://flutter.io/platform-plugins/).
**To Encode / Decode String to ROT13:**
* **`rot13(String string)`** - Encode / Decode a string to ROT13
## Example
![example](https://raw.githubusercontent.com/aqeelshamz/rot13/main/images/1.png)```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 {
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")
],
),
),
),
);
}
}
```