Commit ac8772a4 authored by GayaniPKarunaratne's avatar GayaniPKarunaratne

Done Loading page

parent 8fc789d3
import 'package:flutter/material.dart';
import 'package:cloud_firestore/cloud_firestore.dart';
import 'package:flutter_spinkit/flutter_spinkit.dart';
class SearchEvent extends StatefulWidget {
const SearchEvent({ Key key }) : super(key: key);
......@@ -60,7 +61,10 @@ class _ListPageState extends State<ListPage> {
if (snapshot.connectionState == ConnectionState.waiting) {
return Center(
child: Text("Loading...."),
child: SpinKitFadingCircle(
color: Colors.green,
size: 80.0,
),
);
}else{
return ListView.builder(
......
......@@ -141,6 +141,13 @@ packages:
description: flutter
source: sdk
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:
dependency: "direct main"
description:
......
......@@ -32,6 +32,7 @@ dependencies:
quiver: ^2.0.0
wakelock: ^0.1.4+1
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