chobilib_flutter 0.4.1 chobilib_flutter: ^0.4.1 copied to clipboard
A flutter package includes basic functions for various use
import 'package:flutter/material.dart';
import 'dart:async';
import 'package:flutter/services.dart';
import 'package:chobilib_flutter/chobilib_flutter.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatefulWidget {
const MyApp({super.key});
@override
State<MyApp> createState() => _MyAppState();
}
class _MyAppState extends State<MyApp> {
String _platformVersion = 'Unknown';
@override
void initState() {
super.initState();
WidgetsBinding.instance.addPostFrameCallback((_) async {
final rs = RandomString.withDigitsChars();
debugPrint(rs.getRandomString(20));
});
}
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
appBar: AppBar(
title: const Text('Plugin example app'),
),
body: Center(
child: Text('Running on: $_platformVersion\n'),
),
),
);
}
}