Skip to content

Commit

Permalink
Change loading image
Browse files Browse the repository at this point in the history
  • Loading branch information
harmlessman committed Oct 7, 2023
1 parent 6405600 commit 1f665af
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 15 deletions.
2 changes: 1 addition & 1 deletion lib/pages/search_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class _SearchPageState extends State<SearchPage> {
switch (state){
// 검색 중일 때
case -1:
return Lottie.asset('assets/age_rating_image/load.json');
return Lottie.asset('assets/lottie_files/search.json');
// 결과가 없을 때
case 0:
return Column(
Expand Down
20 changes: 6 additions & 14 deletions lib/pages/update_loading_page.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:lottie/lottie.dart';

class UpdateLoadingPage extends StatefulWidget {
const UpdateLoadingPage({super.key});
Expand All @@ -12,32 +13,23 @@ class _UpdateLoadingPage extends State<UpdateLoadingPage> {
@override
Widget build(BuildContext context) {
return Scaffold(
backgroundColor: Colors.transparent,
backgroundColor: Colors.white,
body: Center(
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [

Image.asset(
'assets/age_rating_image/down.gif',
width: 400.h,
height: 400.w,
),
Lottie.asset('assets/lottie_files/download.json'),
SizedBox(height: 100.h,),
Text(
"다운로드중\n잠시만 기다려주세요",
"다운로드중...\n잠시만 기다려주세요",
style: TextStyle(
decoration: TextDecoration.none,
fontSize: 50.0.sp,
fontWeight: FontWeight.bold,
height:1.5.h
),
textAlign:TextAlign.center,
),
// ElevatedButton(
// onPressed: () {
// Navigator.pop(context);
// },
// child: Text('back')
// )
],
),
));
Expand Down

0 comments on commit 1f665af

Please sign in to comment.