Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added loading gif #2

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added assets/Raw/Loading.mp4
Binary file not shown.
Binary file added assets/images/loader.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 4 additions & 6 deletions lib/widgets/loading.dart
Original file line number Diff line number Diff line change
@@ -1,18 +1,16 @@
import 'package:flutter/material.dart';
import 'package:flutter_spinkit/flutter_spinkit.dart';

class Loading extends StatelessWidget {
const Loading({Key? key}) : super(key: key);

@override
Widget build(BuildContext context) {
return Container(
color: Colors.transparent,
color: Color.fromRGBO(250, 250, 250, 1),
child: Center(
child: SpinKitCubeGrid(
color: Colors.blue,
size: 50.0,
),
child: ClipRRect(
borderRadius: BorderRadius.circular(100),
child: Image.asset("assets/images/loader.gif", height: 120, fit: BoxFit.cover,))
),
);
}
Expand Down
13 changes: 10 additions & 3 deletions pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -132,13 +132,20 @@ packages:
description: flutter
source: sdk
version: "0.0.0"
flutter_spinkit:
flutter_staggered_grid_view:
dependency: transitive
description:
name: flutter_staggered_grid_view
url: "https://pub.dartlang.org"
source: hosted
version: "0.3.4"
flutter_svg:
dependency: "direct main"
description:
name: flutter_spinkit
name: flutter_svg
url: "https://pub.dartlang.org"
source: hosted
version: "5.0.0"
version: "0.19.1"
flutter_test:
dependency: "direct dev"
description: flutter
Expand Down
8 changes: 7 additions & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,13 @@ dependencies:
cloud_firestore: ^1.0.0
cupertino_icons: ^1.0.2
firebase_core: ^1.0.0
flutter_spinkit: ^5.0.0
flappy_search_bar: ^1.7.2
flutter_svg: ^0.19.1
fluttericon: ^1.0.7
font_awesome_flutter: ^8.11.0
google_fonts: ^1.1.1
shared_preferences: ^2.0.1
url_launcher: ^6.0.1
fluttericon: ^2.0.0
google_fonts: ^2.0.0
http: ^0.13.0
Expand Down