Advertisement
mactech24

exchange container . dart

Jan 19th, 2023
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Dart 3.93 KB | None | 0 0
  1. import 'package:credical/constants.dart';
  2. import 'package:credical/utile_size.dart';
  3. import 'package:flutter/material.dart';
  4.  
  5. class ExchangeContainer extends StatelessWidget {
  6.   const ExchangeContainer({super.key});
  7.  
  8.   @override
  9.   Widget build(BuildContext context) {
  10.     SizeConfig().init(context);
  11.     Size size = MediaQuery.of(context).size;
  12.     return Container(
  13.       decoration: BoxDecoration(
  14.         borderRadius: BorderRadius.circular(15),
  15.         color: Color(0xff0f7dff),
  16.       ),
  17.       padding: EdgeInsets.symmetric(
  18.         horizontal: getProportionateScreenWidth(10),
  19.       ),
  20.       height: getProportionateScreenHeight(60),
  21.       width: size.width,
  22.       child: Padding(
  23.         padding: EdgeInsets.only(
  24.           left: getProportionateScreenWidth(10),
  25.         ),
  26.         child: Row(
  27.           mainAxisAlignment: MainAxisAlignment.spaceBetween,
  28.           children: [
  29.             Text(
  30.               "Amount to send in naira",
  31.               style: TextStyle(
  32.                 color: Colors.white,
  33.                 fontSize: getProportionateScreenWidth(16),
  34.               ),
  35.             ),
  36.             SizedBox(
  37.               width: getProportionateScreenWidth(30),
  38.             ),
  39.             Expanded(
  40.               child: Container(
  41.                 padding: EdgeInsets.symmetric(
  42.                     horizontal: getProportionateScreenWidth(6)),
  43.                 height: getProportionateScreenHeight(33),
  44.                 decoration: BoxDecoration(
  45.                     color: Color(0xffe6f2ff),
  46.                     borderRadius: BorderRadius.circular(10)),
  47.                 child: Row(
  48.                   mainAxisAlignment: MainAxisAlignment.spaceBetween,
  49.                   children: [
  50.                     Image.asset("assets/transfer/Nigeria.png"),
  51.                     Image.asset(
  52.                       "assets/transfer/down-Arrow.png",
  53.                       color: blueColor,
  54.                     ),
  55.                   ],
  56.                 ),
  57.               ),
  58.             ),
  59.           ],
  60.         ),
  61.       ),
  62.     );
  63.   }
  64. }
  65.  
  66. class ExchangeContainer2 extends StatelessWidget {
  67.   const ExchangeContainer2({super.key});
  68.  
  69.   @override
  70.   Widget build(BuildContext context) {
  71.     Size size = MediaQuery.of(context).size;
  72.     return Container(
  73.       decoration: BoxDecoration(
  74.         borderRadius: BorderRadius.circular(15),
  75.         color: Color(0xff0f7dff),
  76.       ),
  77.       padding: EdgeInsets.symmetric(
  78.         horizontal: getProportionateScreenWidth(10),
  79.       ),
  80.       height: getProportionateScreenHeight(60),
  81.       width: size.width,
  82.       child: Padding(
  83.         padding: EdgeInsets.only(
  84.           left: getProportionateScreenWidth(10),
  85.         ),
  86.         child: Row(
  87.           mainAxisAlignment: MainAxisAlignment.spaceBetween,
  88.           children: [
  89.             Text(
  90.               "Amount to receive in cedi",
  91.               style: TextStyle(
  92.                 color: Colors.white,
  93.                 fontSize: getProportionateScreenWidth(16),
  94.               ),
  95.             ),
  96.             SizedBox(
  97.               width: getProportionateScreenWidth(20),
  98.             ),
  99.             Expanded(
  100.               child: Container(
  101.                 padding: EdgeInsets.symmetric(
  102.                     horizontal: getProportionateScreenWidth(6)),
  103.                 height: getProportionateScreenHeight(33),
  104.                 decoration: BoxDecoration(
  105.                     color: Color(0xffe6f2ff),
  106.                     borderRadius: BorderRadius.circular(10)),
  107.                 child: Row(
  108.                   mainAxisAlignment: MainAxisAlignment.spaceBetween,
  109.                   children: [
  110.                     Image.asset("assets/transfer/Ghana.png"),
  111.                     Image.asset(
  112.                       "assets/transfer/down-Arrow.png",
  113.                       color: blueColor,
  114.                     ),
  115.                   ],
  116.                 ),
  117.               ),
  118.             ),
  119.           ],
  120.         ),
  121.       ),
  122.     );
  123.   }
  124. }
  125.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement