Skip to content

Commit

Permalink
loading animation added
Browse files Browse the repository at this point in the history
  • Loading branch information
jspw committed Nov 16, 2020
1 parent 6301d4f commit 9c308e3
Show file tree
Hide file tree
Showing 10 changed files with 29 additions and 67 deletions.
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"compile-hero.disable-compile-files-on-did-save-code": false
}
2 changes: 1 addition & 1 deletion android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ if (flutterVersionCode == null) {

def flutterVersionName = localProperties.getProperty('flutter.versionName')
if (flutterVersionName == null) {
flutterVersionName = '1.0'
flutterVersionName = '1.10'
}

apply plugin: 'com.android.application'
Expand Down
7 changes: 0 additions & 7 deletions android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,6 @@
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
<!-- allows startup after boot -->
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.CAMERA" android:required="true" />
<uses-permission android:name="android.permission.RECORD_AUDIO" android:required="true" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" android:required="true" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" android:required="true" />
<uses-permission android:name="android.permission.BLUETOOTH" />
<uses-permission android:name="android.permission.BLUETOOTH_ADMIN" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<application android:name="io.flutter.app.FlutterApplication" android:label="Ubuntu Launcher" android:icon="@mipmap/ic_launcher">
<activity android:name=".MainActivity" android:launchMode="singleTop" android:theme="@style/LaunchTheme" android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode" android:hardwareAccelerated="true" android:windowSoftInputMode="adjustResize">
<!--
Expand Down
Binary file modified 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.
Binary file added assets/images/loader2.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
30 changes: 25 additions & 5 deletions lib/UI/Screens/apps.dart
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ class AppsState extends State {
leading: GestureDetector(
onTap: () => Navigator.pop(context),
child: Container(
// color: Colors.black,
color: Colors.pink[900],
child: IconButton(
icon: Icon(
Icons.arrow_back_ios,
Expand All @@ -71,7 +71,28 @@ class AppsState extends State {
color: Colors.transparent,
onRefresh: () => appInfo(),
child: apps == null
? Center(child: Image.asset("assets/images/loader.gif"))
? Center(
child: Column(
crossAxisAlignment: CrossAxisAlignment.center,
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
children: <Widget>[
// CircularProgressIndicator(
// backgroundColor: Colors.pink,

// valueColor: AlwaysStoppedAnimation<Color>(Colors.white),
// ),
Container(
height: 50,
width: 50,
color: Colors.transparent,
child: Image.asset(
"assets/images/loader2.gif",
fit: BoxFit.cover,
),
),
],
),
)
: GridView.count(
physics: BouncingScrollPhysics(),
crossAxisCount: 4,
Expand All @@ -80,10 +101,9 @@ class AppsState extends State {
return GestureDetector(
onTap: () => DeviceApps.openApp(app.packageName),
child: app is ApplicationWithIcon
? Card(
color: Colors.transparent,
? GridTile(
child: Padding(
padding: const EdgeInsets.all(5.0),
padding: const EdgeInsets.all(10.0),
child: Column(
crossAxisAlignment: CrossAxisAlignment.center,
mainAxisAlignment:
Expand Down
1 change: 0 additions & 1 deletion lib/Utility/libraries.dart
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ export 'package:flutter/material.dart';
export 'package:app_settings/app_settings.dart';
export 'package:url_launcher/url_launcher.dart';
export 'package:device_apps/device_apps.dart';
export 'package:system_setting/system_setting.dart';

//Custom

Expand Down
21 changes: 0 additions & 21 deletions pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -121,20 +121,6 @@ packages:
url: "https://pub.dartlang.org"
source: hosted
version: "1.6.4"
permission_handler:
dependency: "direct main"
description:
name: permission_handler
url: "https://pub.dartlang.org"
source: hosted
version: "5.0.1+1"
permission_handler_platform_interface:
dependency: transitive
description:
name: permission_handler_platform_interface
url: "https://pub.dartlang.org"
source: hosted
version: "2.0.1"
petitparser:
dependency: transitive
description:
Expand Down Expand Up @@ -203,13 +189,6 @@ packages:
url: "https://pub.dartlang.org"
source: hosted
version: "1.0.5"
system_setting:
dependency: "direct main"
description:
name: system_setting
url: "https://pub.dartlang.org"
source: hosted
version: "0.1.3"
term_glyph:
dependency: transitive
description:
Expand Down
2 changes: 0 additions & 2 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,8 @@ dependencies:
sdk: flutter
device_apps: ^1.2.0
url_launcher: ^5.6.0
permission_handler: ^5.0.1+1
app_settings: 4.0.3
cupertino_icons: ^0.1.3
system_setting: ^0.1.3

dev_dependencies:
flutter_test:
Expand Down
30 changes: 0 additions & 30 deletions test/widget_test.dart

This file was deleted.

0 comments on commit 9c308e3

Please sign in to comment.