Advertisement
mactech24

body . dart

Jan 19th, 2023
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Dart 4.29 KB | None | 0 0
  1. import 'package:credical/components/appbar_header_style.dart';
  2. import 'package:credical/components/buttomLarge.dart';
  3. import 'package:credical/constants.dart';
  4. import 'package:credical/screens/transfer/components/exchange_container.dart';
  5. import 'package:credical/utile_size.dart';
  6. import 'package:flutter/material.dart';
  7. import 'package:flutter/services.dart';
  8. import 'package:flutter/src/widgets/container.dart';
  9. import 'package:flutter/src/widgets/framework.dart';
  10. import 'package:flutter_svg/flutter_svg.dart';
  11.  
  12. class BodyTransfer extends StatefulWidget {
  13.   const BodyTransfer({super.key});
  14.  
  15.   @override
  16.   State<BodyTransfer> createState() => _BodyTransferState();
  17. }
  18.  
  19. class _BodyTransferState extends State<BodyTransfer> {
  20.   @override
  21.   Widget build(BuildContext context) {
  22.     SystemChrome.setSystemUIOverlayStyle(
  23.       SystemUiOverlayStyle(
  24.         statusBarColor: Colors.transparent,
  25.       ),
  26.     );
  27.     SizeConfig().init(context);
  28.     Size size = MediaQuery.of(context).size;
  29.     return Column(
  30.       children: [
  31.         Container(
  32.           height: size.height * 0.12,
  33.           width: size.width,
  34.           child: Center(
  35.             child: Text(
  36.               "Transfer",
  37.               style: TextStyle(
  38.                 color: darkColor,
  39.                 fontSize: getProportionateScreenWidth(20),
  40.                 fontWeight: FontWeight.bold,
  41.               ),
  42.             ),
  43.           ),
  44.         ),
  45.         //  const AppbarHeaderStile(),
  46.         Padding(
  47.           padding: EdgeInsets.symmetric(
  48.               horizontal: getProportionateScreenWidth(30.0)),
  49.           child: Container(
  50.             child: Stack(
  51.               children: [
  52.                 Container(),
  53.                 Container(
  54.                   child: Column(
  55.                     children: [
  56.                       ExchangeContainer(),
  57.                       SizedBox(
  58.                         height: getProportionateScreenHeight(22),
  59.                       ),
  60.                       ExchangeContainer2(),
  61.                     ],
  62.                   ),
  63.                 ),
  64.                 Container(),
  65.                 Positioned(
  66.                   top: getProportionateScreenHeight(45),
  67.                   right: 0,
  68.                   left: 0,
  69.                   child: Container(
  70.                     padding: EdgeInsets.all(getProportionateScreenWidth(8)),
  71.                     height: getProportionateScreenHeight(45),
  72.                     width: getProportionateScreenHeight(45),
  73.                     decoration: const BoxDecoration(
  74.                         shape: BoxShape.circle,
  75.                         color: whiteColor,
  76.                         boxShadow: [
  77.                           BoxShadow(
  78.                             color: Colors.grey,
  79.                             blurRadius: 3,
  80.                           )
  81.                         ]),
  82.                     child: Center(
  83.                       child: Image.asset(
  84.                         "assets/transfer/two-way.png",
  85.                         color: blueColor,
  86.                       ),
  87.                     ),
  88.                   ),
  89.                 ),
  90.               ],
  91.             ),
  92.           ),
  93.         ),
  94.         SizedBox(
  95.           height: getProportionateScreenHeight(10),
  96.         ),
  97.         Container(
  98.           margin: EdgeInsets.symmetric(
  99.             horizontal: getProportionateScreenWidth(135),
  100.           ),
  101.           height: getProportionateScreenHeight(35),
  102.           decoration: BoxDecoration(
  103.             color: Color(0xffd7eaff),
  104.             borderRadius: BorderRadius.circular(20),
  105.           ),
  106.           child: Center(
  107.             child: Text("Rate: N39.55/"),
  108.           ),
  109.         ),
  110.         Expanded(
  111.           child: Padding(
  112.             padding: EdgeInsets.only(
  113.               bottom: getProportionateScreenHeight(100),
  114.             ),
  115.             child: Column(
  116.               mainAxisAlignment: MainAxisAlignment.end,
  117.               children: [
  118.                 Center(
  119.                   child: ButtomLarge(
  120.                     color: blue,
  121.                     press: () {},
  122.                     text: 'Proceed',
  123.                     textColor: whiteColor,
  124.                     borderColor: blue,
  125.                   ),
  126.                 ),
  127.               ],
  128.             ),
  129.           ),
  130.         )
  131.       ],
  132.     );
  133.   }
  134. }
  135.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement