bytebin 1.0.1
bytebin: ^1.0.1 copied to clipboard
A package for reading and working with, binary, bytes and different encodings
example/lib/main.dart
import 'package:bytebin/bytebin.dart';
import 'package:bytebin/hex_viewer.dart';
import 'package:example/app_theme.dart';
import 'package:example/data.dart';
import 'package:flutter/material.dart';
void main() {
runApp(const MainApp());
}
class MainApp extends StatelessWidget {
const MainApp({super.key});
@override
Widget build(BuildContext context) {
Bytebin bin = Bytebin.fromBase256('~.~4ge3g335fb35y3f');
print(bin.hexadecimal);
return MaterialApp(
debugShowCheckedModeBanner: false,
themeMode: ThemeMode.system,
theme: AppTheme.dark(),
home: Scaffold(
body: Center(
child: HexViewer(
data: demoData,
config: HexConfig(groupSize: 8, bytesPerLine: 32),
),
),
),
);
}
}