Skip to content

Commit 3e0d849

Browse files
committed
make a developer widget
1 parent 8eb4c6c commit 3e0d849

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
2+
import 'package:flutter/material.dart';
3+
import 'package:get/get.dart';
4+
import 'package:newsapplication/Config/assets_path.dart';
5+
6+
class DeveloperInfoDialog extends StatelessWidget {
7+
const DeveloperInfoDialog({super.key});
8+
9+
@override
10+
Widget build(BuildContext context) {
11+
return AlertDialog(
12+
title: const Text('About the Developer'),
13+
content:Row(
14+
children: [
15+
ClipRRect(
16+
borderRadius:BorderRadius.circular(40),
17+
child: Image.asset(AssetsPath.developerImage,width:80,height:50,)),
18+
const SizedBox(width:12),
19+
Container(
20+
width:Get.width/2.3,
21+
child:Text(
22+
'This app was created by Arif Ansari, a passionate Flutter developer',
23+
style:Theme.of(context).textTheme.labelMedium,
24+
),
25+
),
26+
],
27+
),
28+
actions: [
29+
TextButton(
30+
child: const Text('Close'),
31+
onPressed: () {
32+
Get.back();
33+
},
34+
),
35+
],
36+
);
37+
}
38+
}
39+

0 commit comments

Comments
 (0)