Skip to content

Commit

Permalink
Updated custom_pdf_icon.dart
Browse files Browse the repository at this point in the history
  • Loading branch information
farhank9821 authored Jan 14, 2024
1 parent edcf10d commit b05fa53
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions lib/screens/notes_screen/widgets/custom_pdf_icon.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@ import 'package:flutter/material.dart';

class CustomPdfIcon extends StatelessWidget {
final String pdfName;
const CustomPdfIcon({super.key, required this.pdfName});
final VoidCallback method;
const CustomPdfIcon({super.key, required this.pdfName, required this.method});

@override
Widget build(BuildContext context) {
return Container(
height: MediaQuery.of(context).size.height * 0.03,
width: MediaQuery.of(context).size.width * 0.30,
width: MediaQuery.of(context).size.width * 0.37,
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(10),
color: Theme.of(context).scaffoldBackgroundColor,
Expand All @@ -31,6 +32,16 @@ class CustomPdfIcon extends StatelessWidget {
fontSize: 14,
),
),
const SizedBox(
width: 7,
),
InkWell(
onTap: method,
child: const Icon(
Icons.cancel_outlined,
color: Colors.grey,
),
)
],
),
),
Expand Down

0 comments on commit b05fa53

Please sign in to comment.