FLUTTER ECOSYSTEM

aqeelshamz/rot13

문자열을 ROT13으로 인코딩/디코딩하는 Flutter 패키지

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