-
Notifications
You must be signed in to change notification settings - Fork 204
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Added the delete badge and import saved badge functionality. (#…
…1047) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
- Loading branch information
1 parent
56aee1b
commit 221308b
Showing
9 changed files
with
313 additions
and
10 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import 'package:badgemagic/view/widgets/common_scaffold_widget.dart'; | ||
import 'package:flutter/material.dart'; | ||
|
||
class SavedClipart extends StatefulWidget { | ||
const SavedClipart({super.key}); | ||
|
||
@override | ||
State<SavedClipart> createState() => _SavedClipartState(); | ||
} | ||
|
||
class _SavedClipartState extends State<SavedClipart> { | ||
@override | ||
Widget build(BuildContext context) { | ||
return CommonScaffold( | ||
body: Column( | ||
children: [], | ||
), | ||
title: '', | ||
); | ||
} | ||
} |
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,88 @@ | ||
import 'package:flutter/material.dart'; | ||
import 'package:flutter_screenutil/flutter_screenutil.dart'; | ||
|
||
class DeleteBadgeDialog extends StatelessWidget { | ||
const DeleteBadgeDialog({ | ||
super.key, | ||
}); | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
return Dialog( | ||
shape: RoundedRectangleBorder( | ||
borderRadius: BorderRadius.circular(5.r), | ||
), | ||
child: Container( | ||
height: 110.h, | ||
width: 300.w, | ||
decoration: BoxDecoration( | ||
color: Colors.white, | ||
borderRadius: BorderRadius.circular(5.r), | ||
), | ||
child: Column( | ||
children: [ | ||
SizedBox( | ||
height: 10.h, | ||
), | ||
Row( | ||
children: [ | ||
SizedBox( | ||
width: 20, | ||
), | ||
Icon(Icons.delete, color: Colors.black), | ||
SizedBox( | ||
width: 10, | ||
), | ||
Text( | ||
'Delete', | ||
style: TextStyle( | ||
fontSize: 16.sp, | ||
fontWeight: FontWeight.w500, | ||
), | ||
), | ||
], | ||
), | ||
SizedBox( | ||
height: 7.h, | ||
), | ||
Row( | ||
children: [ | ||
SizedBox( | ||
width: 20, | ||
), | ||
Text('Are you sure want to delete this badge?', | ||
style: TextStyle(fontSize: 14.sp)), | ||
], | ||
), | ||
SizedBox( | ||
height: 10.h, | ||
), | ||
Row( | ||
mainAxisAlignment: MainAxisAlignment.end, | ||
children: [ | ||
TextButton( | ||
onPressed: () { | ||
Navigator.of(context).pop(false); | ||
}, | ||
child: const Text( | ||
'Cancel', | ||
style: TextStyle(color: Colors.red), | ||
), | ||
), | ||
TextButton( | ||
onPressed: () { | ||
Navigator.of(context).pop(true); | ||
}, | ||
child: const Text( | ||
'OK', | ||
style: TextStyle(color: Colors.red), | ||
), | ||
), | ||
], | ||
), | ||
], | ||
), | ||
), | ||
); | ||
} | ||
} |
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.