FLUTTER ECOSYSTEM

aqeelshamz/rot13

Flutter 包,用于将字符串编码/解码为 ROT13

rot13 项目封面
Stars
1
Forks
0
最近推送(UTC)
2022年3月10日
项目状态
未归档
Aqeel Shamsudheen GitHub avatar
GITHUB User

Aqeel Shamsudheen ↗

语言Dart

此仓库发布的插件

使用的依赖

依赖清单 2 项
  • flutter{"sdk":"flutter"}
  • flutter_test开发依赖{"sdk":"flutter"}

原始 README

以下为英文项目原文快照,最新内容请访问 GitHub。

展开 / 收起项目 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.

To Encode / Decode String to ROT13:

  • rot13(String string) - Encode / Decode a string to ROT13

Example

example

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")
            ],
          ),
        ),
      ),
    );
  }
}