Files
fl-query/packages/fl_query_hooks/example/lib/pages/home.dart
T
2023-02-23 22:50:37 +06:00

32 lines
811 B
Dart

import 'package:flutter/material.dart';
import 'package:go_router/go_router.dart';
class HomePage extends StatelessWidget {
const HomePage({super.key});
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: const Text('FL Query Example'),
),
body: ListView(
children: [
ListTile(
title: const Text('Query'),
onTap: () => GoRouter.of(context).push('/query'),
),
ListTile(
title: const Text('Infinite Query'),
onTap: () => GoRouter.of(context).push('/infinite-query'),
),
ListTile(
title: const Text('Mutation'),
onTap: () => GoRouter.of(context).push('/mutation'),
),
],
),
);
}
}