diff --git a/assets/images/portfolio_screen/document.png b/assets/images/portfolio_screen/document.png new file mode 100644 index 0000000..b384211 Binary files /dev/null and b/assets/images/portfolio_screen/document.png differ diff --git a/assets/images/portfolio_screen/download.png b/assets/images/portfolio_screen/download.png new file mode 100644 index 0000000..cb30d91 Binary files /dev/null and b/assets/images/portfolio_screen/download.png differ diff --git a/lib/core/styles/app_text.dart b/lib/core/styles/app_text.dart index 1b154bc..065bb8f 100644 --- a/lib/core/styles/app_text.dart +++ b/lib/core/styles/app_text.dart @@ -64,6 +64,7 @@ class AppText { static const String currentval = "Current valuation"; static const String totalreturn = "Total return"; static const String disttodate = "Distributions to date"; + static const String includeddocs = "Included Documents"; //Dialog static const String exitText = "Exit"; diff --git a/lib/features/MainScreens/Portfolio/presentation/pages/detailsScreen.dart b/lib/features/MainScreens/Portfolio/presentation/pages/detailsScreen.dart index 879a4eb..2bedda2 100644 --- a/lib/features/MainScreens/Portfolio/presentation/pages/detailsScreen.dart +++ b/lib/features/MainScreens/Portfolio/presentation/pages/detailsScreen.dart @@ -304,6 +304,114 @@ class _DetailsScreenState extends State { ], ), ), + SizedBox( + height: 20.h, + ), + Container( + width: double.infinity, + decoration: BoxDecoration( + color: Colors.white, + borderRadius: const BorderRadius.all(Radius.circular(20.0)), + boxShadow: [ + BoxShadow( + color: Colors.black.withOpacity(0.15), + spreadRadius: 2, + blurRadius: 10, + offset: Offset(0, 3), // changes position of shadow + ), + ], + ), + child: Padding( + padding: const EdgeInsets.all(20.0), + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Text( + AppText.includeddocs, + style: GoogleFonts.dmSans( + color: Colors.black, + fontSize: 15.sp, + fontWeight: FontWeight.w700, + ), + ), + SizedBox( + height: 16.h, + ), + GridView.count( + shrinkWrap: true, + childAspectRatio: 1.7, + mainAxisSpacing: 10.h, + crossAxisSpacing: 10.w, + crossAxisCount: 2, // Number of columns + children: List.generate( + 6, + (index) { + return Center( + child: Container( + decoration: BoxDecoration( + color: Color(0xFFF4F4F4), + borderRadius: + BorderRadius.all(Radius.circular(10.0)), + ), + padding: EdgeInsets.all(20.0), + child: Column( + children: [ + Row( + children: [ + Image.asset( + 'assets/images/portfolio_screen/document.png', + height: 16.sp, + ), + SizedBox( + width: 7.w, + ), + Text( + "Filename.pdf", + style: GoogleFonts.dmSans( + color: Colors.black, + fontSize: 12.sp, + fontWeight: FontWeight.w700, + ), + ), + ], + ), + SizedBox( + height: 14.h, + ), + Row( + crossAxisAlignment: + CrossAxisAlignment.end, + mainAxisAlignment: + MainAxisAlignment.spaceBetween, + children: [ + Text( + "512 Mb", + style: GoogleFonts.dmSans( + color: Color(0xFF535353), + fontSize: 12.sp, + fontWeight: FontWeight.w700, + ), + ), + SizedBox( + width: 7.w, + ), + Image.asset( + 'assets/images/portfolio_screen/download.png', + height: 20.sp, + ), + ], + ), + ], + ), + ), + ); + }, + ), + ) + ], + ), + ), + ), ], ), ),