Commit ac8772a4 authored by GayaniPKarunaratne's avatar GayaniPKarunaratne

Done Loading page

parent 8fc789d3
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:cloud_firestore/cloud_firestore.dart'; import 'package:cloud_firestore/cloud_firestore.dart';
import 'package:flutter_spinkit/flutter_spinkit.dart';
class SearchEvent extends StatefulWidget { class SearchEvent extends StatefulWidget {
const SearchEvent({ Key key }) : super(key: key); const SearchEvent({ Key key }) : super(key: key);
...@@ -60,7 +61,10 @@ class _ListPageState extends State<ListPage> { ...@@ -60,7 +61,10 @@ class _ListPageState extends State<ListPage> {
if (snapshot.connectionState == ConnectionState.waiting) { if (snapshot.connectionState == ConnectionState.waiting) {
return Center( return Center(
child: Text("Loading...."), child: SpinKitFadingCircle(
color: Colors.green,
size: 80.0,
),
); );
}else{ }else{
return ListView.builder( return ListView.builder(
......
...@@ -141,6 +141,13 @@ packages: ...@@ -141,6 +141,13 @@ packages:
description: flutter description: flutter
source: sdk source: sdk
version: "0.0.0" version: "0.0.0"
flutter_spinkit:
dependency: "direct main"
description:
name: flutter_spinkit
url: "https://pub.dartlang.org"
source: hosted
version: "4.1.2+1"
flutter_svg: flutter_svg:
dependency: "direct main" dependency: "direct main"
description: description:
......
...@@ -32,6 +32,7 @@ dependencies: ...@@ -32,6 +32,7 @@ dependencies:
quiver: ^2.0.0 quiver: ^2.0.0
wakelock: ^0.1.4+1 wakelock: ^0.1.4+1
charts_flutter: ^0.9.0 charts_flutter: ^0.9.0
flutter_spinkit: "^4.1.2"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment