-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #31 from Divyakumar21202/main
I've resolved the issue regarding to Pagination Logic with Applied Filter
- Loading branch information
Showing
31 changed files
with
1,100 additions
and
603 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
// import 'package:flutter/material.dart'; | ||
|
||
// bool _errorDisplayed = false; // Global flag to track the display status | ||
|
||
// void showMyMessage({required String message, required BuildContext context}) { | ||
// if (_errorDisplayed) return; // Prevent showing multiple toasts | ||
|
||
// _errorDisplayed = true; | ||
|
||
// final overlay = Overlay.of(context); | ||
// final overlayEntry = OverlayEntry( | ||
// builder: (context) => Positioned( | ||
// bottom: MediaQuery.of(context).size.height * | ||
// 0.02, // Adjust the position as needed | ||
// left: MediaQuery.of(context).size.width * 0.03, | ||
// right: MediaQuery.of(context).size.width * 0.03, | ||
// child: Material( | ||
// color: Colors.transparent, | ||
// child: Container( | ||
// padding: const EdgeInsets.symmetric(horizontal: 16.0, vertical: 10.0), | ||
// decoration: BoxDecoration( | ||
// color: Colors.red.withOpacity(0.9), | ||
// borderRadius: BorderRadius.circular(8.0), | ||
// ), | ||
// child: Row( | ||
// mainAxisSize: MainAxisSize.min, | ||
// children: [ | ||
// const Icon(Icons.error_outline, color: Colors.white), | ||
// const SizedBox(width: 10), | ||
// Text( | ||
// message, | ||
// style: const TextStyle( | ||
// color: Colors.white, fontWeight: FontWeight.bold), | ||
// ), | ||
// ], | ||
// ), | ||
// ), | ||
// ), | ||
// ), | ||
// ); | ||
|
||
// overlay.insert(overlayEntry); | ||
|
||
// Future.delayed(const Duration(seconds: 1, milliseconds: 10), () { | ||
// overlayEntry.remove(); | ||
// _errorDisplayed = false; // Reset the flag after the toast disappears | ||
// }); | ||
// } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import 'package:flutter/material.dart'; | ||
import 'package:mess_mgmt/Global/effects/shimmer_effect.dart'; | ||
|
||
class ShimmerWidget extends StatelessWidget { | ||
const ShimmerWidget({super.key}); | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
return ShimmerEffect( | ||
child: Card( | ||
margin: const EdgeInsets.symmetric(horizontal: 16, vertical: 8), | ||
shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(16)), | ||
elevation: 8, | ||
child: Container( | ||
height: 180, | ||
width: double.infinity, | ||
decoration: BoxDecoration( | ||
color: Colors.white, | ||
borderRadius: BorderRadius.circular(16), | ||
), | ||
), | ||
), | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.