mirror of
https://github.com/foss42/apidash.git
synced 2025-08-06 05:32:26 +08:00
New animated sending widget
This commit is contained in:
Binary file not shown.
Before Width: | Height: | Size: 181 KiB |
1
assets/sending.json
Normal file
1
assets/sending.json
Normal file
File diff suppressed because one or more lines are too long
@ -69,30 +69,3 @@ class NotSentWidget extends StatelessWidget {
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
class SendingWidget extends StatelessWidget {
|
||||
const SendingWidget({super.key});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
final color = Theme.of(context).colorScheme.secondary;
|
||||
return Center(
|
||||
child: Column(
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
children: [
|
||||
ColorFiltered(
|
||||
colorFilter: ColorFilter.mode(
|
||||
//Color.fromARGB(123, 71, 84, 179),
|
||||
color.withOpacity(0.7),
|
||||
BlendMode.dstIn,
|
||||
),
|
||||
child: const Image(
|
||||
image: sendingIndicator,
|
||||
width: 300,
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
18
lib/widgets/sending_widget.dart
Normal file
18
lib/widgets/sending_widget.dart
Normal file
@ -0,0 +1,18 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:lottie/lottie.dart';
|
||||
|
||||
class SendingWidget extends StatelessWidget {
|
||||
const SendingWidget({super.key});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Center(
|
||||
child: Column(
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
children: [
|
||||
Lottie.asset("assets/sending.json"),
|
||||
],
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
@ -5,3 +5,4 @@ export 'previewer.dart';
|
||||
export 'code_previewer.dart';
|
||||
export 'codegen_previewer.dart';
|
||||
export 'error_message.dart';
|
||||
export 'sending_widget.dart';
|
||||
|
@ -328,6 +328,14 @@ packages:
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "1.1.1"
|
||||
lottie:
|
||||
dependency: "direct main"
|
||||
description:
|
||||
name: lottie
|
||||
sha256: "23522951540d20a57a60202ed7022e6376bed206a4eee1c347a91f58bd57eb9f"
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "2.3.2"
|
||||
matcher:
|
||||
dependency: transitive
|
||||
description:
|
||||
|
@ -26,6 +26,7 @@ dependencies:
|
||||
url: https://github.com/google/flutter-desktop-embedding.git
|
||||
path: plugins/window_size
|
||||
hive_flutter: ^1.1.0
|
||||
lottie: ^2.3.2
|
||||
|
||||
dev_dependencies:
|
||||
flutter_test:
|
||||
@ -38,4 +39,4 @@ flutter:
|
||||
uses-material-design: true
|
||||
assets:
|
||||
- google_fonts/
|
||||
- assets/sending.gif
|
||||
- assets/
|
||||
|
Reference in New Issue
Block a user