-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
554d56a
commit ef9aec8
Showing
5 changed files
with
49 additions
and
53 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
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 |
---|---|---|
@@ -1,53 +1,54 @@ | ||
import 'package:flutter/cupertino.dart'; | ||
|
||
import '../../../file_provider.dart'; | ||
|
||
class IpoListTile extends StatelessWidget { | ||
const IpoListTile({super.key}); | ||
final int index; | ||
const IpoListTile({super.key, required this.index}); | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
return Column( | ||
crossAxisAlignment: CrossAxisAlignment.start, | ||
children: [ | ||
const SizedBox(height: 8), | ||
const Padding( | ||
padding: EdgeInsets.symmetric(horizontal: 16.0), | ||
child: Text( | ||
'Mankind Pharma LTD', | ||
style: TextStyle(color: Colors.grey, fontSize: 12), | ||
)), | ||
ListTile( | ||
key: UniqueKey(), | ||
title: Padding( | ||
padding: const EdgeInsets.symmetric(vertical: 8.0), | ||
child: const Text("MANKIND", style: TextStyle(fontSize: 14)), | ||
), | ||
subtitle: const Padding( | ||
padding: EdgeInsets.symmetric(vertical: 4.0), | ||
child: Text( | ||
'1026 - 1080', | ||
style: TextStyle(color: Colors.grey, fontSize: 12), | ||
), | ||
return Padding( | ||
padding: const EdgeInsets.symmetric(horizontal: 16.0), | ||
child: Column( | ||
crossAxisAlignment: CrossAxisAlignment.start, | ||
children: [ | ||
const SizedBox(height: 12), | ||
const Text( | ||
'Mankind Pharma LTD', | ||
style: TextStyle(color: Colors.grey, fontSize: 12), | ||
), | ||
trailing: Column( | ||
mainAxisAlignment: MainAxisAlignment.start, | ||
crossAxisAlignment: CrossAxisAlignment.end, | ||
const SizedBox(height: 8), | ||
|
||
Row( | ||
mainAxisAlignment: MainAxisAlignment.spaceBetween, | ||
children: [ | ||
const Text("MANKIND", style: TextStyle(fontSize: 14)), | ||
Container( | ||
margin: EdgeInsets.zero, | ||
decoration: BoxDecoration(color: Colors.blue,borderRadius: BorderRadius.circular(3)), | ||
padding: const EdgeInsets.symmetric(horizontal: 8,vertical: 4), | ||
child: const Text("Apply", style: TextStyle(fontSize: 10, color: Colors.white)), | ||
decoration: BoxDecoration(color: index % 2 == 0 ? Colors.blue : Colors.grey.withOpacity(0.2), borderRadius: BorderRadius.circular( index % 2 == 0 ?3:0)), | ||
padding: const EdgeInsets.symmetric(horizontal: 8, vertical: 2), | ||
child: Text( index % 2 == 0 ? "Apply" : "CLOSED", style: TextStyle(fontSize: index % 2 == 0 ? 11 : 14, color: index % 2 == 0 ? Colors.white : Colors.black)), | ||
) | ||
], | ||
), | ||
const SizedBox(height: 8), | ||
|
||
const Row( | ||
mainAxisAlignment: MainAxisAlignment.spaceBetween, | ||
children: [ | ||
Text( | ||
'1026 - 1080', | ||
style: TextStyle(color: Colors.grey, fontSize: 12), | ||
), | ||
const Text("25th - 27th Apr",style: TextStyle(fontSize: 12),) | ||
Text( | ||
"25th - 27th Apr", | ||
style: TextStyle(fontSize: 12), | ||
) | ||
], | ||
), | ||
contentPadding: const EdgeInsets.symmetric(horizontal: 16), | ||
visualDensity: const VisualDensity(vertical: -4, horizontal: -4), | ||
), | ||
const Divider(height: 0, color: Colors.grey, thickness: 0.3) | ||
], | ||
const SizedBox(height: 8), | ||
const Divider(height: 0, color: Colors.grey, thickness: 0.3) | ||
], | ||
), | ||
); | ||
} | ||
} |