flutter_big5 0.0.6 copy "flutter_big5: ^0.0.6" to clipboard
flutter_big5: ^0.0.6 copied to clipboard

This package provides encode, decode method for big5. If you need a solution to encode, decode some old system like kk.muds, this package will help you!

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:flutter_big5/big5.dart';

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

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: const MyHomePage(title: 'Big5 Convert'),
    );
  }
}

class MyHomePage extends StatefulWidget {
  const MyHomePage({super.key, required this.title});

  final String title;

  @override
  State<MyHomePage> createState() => _MyHomePageState();
}

var str = '國立臺灣大學';

class _MyHomePageState extends State<MyHomePage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
        appBar: AppBar(
          title: Text(widget.title),
        ),
        body: Center(
          child: Column(
            mainAxisAlignment: MainAxisAlignment.center,
            children: [
              Text(Big5.encode(str).toString()),
              const Divider(),
              Text(Big5.decode(Big5.encode(str))),
            ],
          ),
        ) // This trailing comma makes auto-formatting nicer for build methods.
        );
  }
}
0
likes
130
points
42
downloads

Publisher

unverified uploader

Weekly Downloads

This package provides encode, decode method for big5. If you need a solution to encode, decode some old system like kk.muds, this package will help you!

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

flutter

More

Packages that depend on flutter_big5