mirror of
https://github.com/aljazceru/turso.git
synced 2025-12-24 03:34:18 +01:00
24 lines
516 B
Dart
24 lines
516 B
Dart
import 'package:flutter/material.dart';
|
|
import 'package:turso_dart/turso_dart.dart';
|
|
|
|
Future<void> main() async {
|
|
final c = LibsqlClient.memory();
|
|
await c.connect();
|
|
final res = await c.query("SELECT 1");
|
|
print(res);
|
|
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')),
|
|
),
|
|
);
|
|
}
|
|
}
|