hf_xet 1.0.0 copy "hf_xet: ^1.0.0" to clipboard
hf_xet: ^1.0.0 copied to clipboard

xet client tech with dart support, used in huggingface_hub

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:hf_xet/hf_xet.dart';

Future<void> main() async {
  WidgetsFlutterBinding.ensureInitialized();
  await HfXet.ensureInitialized();

  runApp(const MyApp());
}

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

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(title: const Text('flutter_rust_bridge quickstart')),
        body: Center(
          child: Text('Hi :)'),
        ),
      ),
    );
  }
}