diff --git a/bindings/dart-bip85/README.md b/bindings/dart-bip85/README.md index f158f35..ca5a769 100644 --- a/bindings/dart-bip85/README.md +++ b/bindings/dart-bip85/README.md @@ -18,11 +18,19 @@ This work is sponsored by [Bull Bitcoin](https://bullbitcoin.com) [ main() async { + await bip85.RustLib.init(); // mandatory + runApp(const MyApp()); +} + +class MyApp extends StatelessWidget { + const MyApp({super.key}); + @override + Widget build(BuildContext context) { const xprv = "xprv9s21ZrQH143K2LBWUUQRFXhucrQqBpKdRRxNVq2zBqsx8HVqFk2uYo8kmbaLLHRdqtQpUm98uKfu3vca1LqdGhUtyoFnCNkfmXRyPXLjbKb"; @@ -44,6 +52,14 @@ void main() async { const expected = "xprv9s21ZrQH143K2srSbCSg4m4kLvPMzcWydgmKEnMmoZUurYuBuYG46c6P71UGXMzmriLzCCBvKQWBUv3vPB3m1SATMhp3uEjXHJ42jFg7myX"; assert(derived == expected); + + return MaterialApp( + home: Scaffold( + appBar: AppBar(title: const Text('flutter_rust_bridge bip85')), + body: Center(child: Text(mnemonic)), + ), + ); + } } ```