2020-12-13 05:43:52 +01:00
|
|
|
import 'package:flutter/cupertino.dart';
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
// import 'package:image_gallery_saver/image_gallery_saver.dart';
|
2020-12-14 11:04:13 +01:00
|
|
|
// import 'package:flutter_html_view';
|
2020-12-21 01:05:00 +01:00
|
|
|
import 'home.dart';
|
2020-12-21 03:59:25 +01:00
|
|
|
import 'package:graphql_flutter/graphql_flutter.dart';
|
2020-12-18 23:54:43 +01:00
|
|
|
|
2020-12-13 05:43:52 +01:00
|
|
|
void main() {
|
2020-12-21 01:05:00 +01:00
|
|
|
runApp(Gecko());
|
2020-12-13 05:43:52 +01:00
|
|
|
}
|
|
|
|
|
2020-12-21 01:05:00 +01:00
|
|
|
class Gecko extends StatelessWidget {
|
2020-12-13 05:43:52 +01:00
|
|
|
@override
|
|
|
|
Widget build(BuildContext context) {
|
2020-12-21 03:59:25 +01:00
|
|
|
final _httpLink = HttpLink(
|
2020-12-27 18:13:20 +01:00
|
|
|
'https://g1.librelois.fr/gva',
|
2020-12-21 03:59:25 +01:00
|
|
|
);
|
|
|
|
|
|
|
|
final _client = ValueNotifier(
|
|
|
|
GraphQLClient(
|
2020-12-27 18:13:20 +01:00
|
|
|
cache: GraphQLCache(),
|
2020-12-21 03:59:25 +01:00
|
|
|
link: _httpLink,
|
|
|
|
),
|
|
|
|
);
|
2020-12-13 05:43:52 +01:00
|
|
|
return MaterialApp(
|
2020-12-21 01:05:00 +01:00
|
|
|
title: 'Ğecko',
|
2020-12-23 18:18:47 +01:00
|
|
|
theme:
|
|
|
|
ThemeData(primaryColor: Colors.blue[50], accentColor: Colors.black),
|
2020-12-21 03:59:25 +01:00
|
|
|
home: GraphQLProvider(
|
|
|
|
client: _client,
|
|
|
|
child: HistoryListScreen(),
|
|
|
|
),
|
2020-12-16 01:36:20 +01:00
|
|
|
);
|
2020-12-13 05:43:52 +01:00
|
|
|
}
|
|
|
|
}
|