9bcdfc9db7
QueryJob.task External Data Support Query task is now pure function Query.data is non-nullable (even the type)
14 lines
447 B
Dart
14 lines
447 B
Dart
import 'package:fl_query/query_bowl.dart';
|
|
import 'package:flutter/material.dart';
|
|
|
|
class AnotherComponent extends StatelessWidget {
|
|
const AnotherComponent({Key? key}) : super(key: key);
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
final lol = QueryBowl.of(context).getQuery<String, void>("greetings");
|
|
if (lol?.data == null) return const CircularProgressIndicator();
|
|
return Text("${lol!.data!} from AnotherComponent");
|
|
}
|
|
}
|