hf_xet 1.0.1 copy "hf_xet: ^1.0.1" to clipboard
hf_xet: ^1.0.1 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 :)'
            '\n\n'
            'If you want to try out this library check out the example in hugginface_hub_dart',
            textAlign: TextAlign.center,
          ),
        ),
      ),
    );
  }
}