Advertisement
navin_thamindu

dart

May 18th, 2021
901
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Dart 3.21 KB | None | 0 0
  1. import 'package:flutter/material.dart';
  2.  
  3. class Compliance extends StatefulWidget {
  4.   @override
  5.   _ComplianceState createState() => _ComplianceState();
  6. }
  7.  
  8. class _ComplianceState extends State<Compliance> {
  9.   @override
  10.   Widget build(BuildContext context) {
  11.     return Flexible(
  12.       child: ListView(
  13.         padding: EdgeInsets.all(25),
  14.         children: [
  15.           Container(
  16.            
  17.             height: 150,
  18.             padding: EdgeInsets.all(5),
  19.             // color: Colors.amber[500],
  20.             decoration: new BoxDecoration(
  21.               color: Colors.green,
  22.  
  23.  
  24.               //First version of round borders :: EDU
  25.               borderRadius: new BorderRadius.only(
  26.                 topLeft: const Radius.circular(10.0),
  27.                 topRight: const Radius.circular(10.0),
  28.                 bottomRight: const Radius.circular(10.0),
  29.                 bottomLeft: const Radius.circular(10.0),
  30.               )
  31.             ),
  32.  
  33.             //inside top card
  34.             child: Row(
  35.               children: [
  36.                
  37.                 Row(
  38.                  
  39.                   children: [
  40.                     Row(
  41.                       //METHANA THAMA THIYENNE XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX                      
  42.                       mainAxisAlignment: MainAxisAlignment.spaceEvenly,
  43.                       mainAxisSize: MainAxisSize.max,
  44.                       children: [
  45.                         Container(
  46.                           height: 75,
  47.                           width: 50,
  48.                           decoration: new BoxDecoration(
  49.                             color: Colors.purple[50],
  50.                              //Second version of round borders :: EDU
  51.                             borderRadius: new BorderRadius.all(Radius.circular(10)),
  52.                           ),
  53.                         ),
  54.                         Container(
  55.                           height: 75,
  56.                           width: 50,
  57.                           decoration: new BoxDecoration(
  58.                             color: Colors.purple[200],
  59.                              //Second version of round borders :: EDU
  60.                             borderRadius: new BorderRadius.all(Radius.circular(10)),
  61.                           ),
  62.                         ),
  63.                         Container(
  64.                           height: 75,
  65.                           width: 50,
  66.                           decoration: new BoxDecoration(
  67.                             color: Colors.purple,
  68.                              //Second version of round borders :: EDU
  69.                             borderRadius: new BorderRadius.all(Radius.circular(10)),
  70.                           ),
  71.                         ),
  72.  
  73.  
  74.                       ],
  75.                     ),
  76.                     //METHANA THAMA THIYENNE XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX                      
  77.                     Column(),
  78.                     Column(),
  79.                   ],
  80.                 ),
  81.                
  82.                 Row(
  83.  
  84.  
  85.                 ),
  86.                
  87.                 Row(
  88.  
  89.                 ),
  90.  
  91.               ],
  92.  
  93.             ),
  94.  
  95.           ),
  96.    
  97.         ],
  98.       ),
  99.     );
  100.   }
  101. }
  102.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement