FLUTTER ECOSYSTEM

aqeelshamz/rot13

ROT13 के लिए स्ट्रिंग को कोड या डीकोड करने के लिए Flutter पैकेज

rot13 प्रोजेक्ट कवर
Stars
1
Forks
0
अंतिम पुश (UTC)
10 मार्च 2022
प्रोजेक्ट स्थिति
सक्रिय
Aqeel Shamsudheen GitHub avatar
भाषाएँ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")
            ],
          ),
        ),
      ),
    );
  }
}