Advertisement
Guest User

Untitled

a guest
May 15th, 2019
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Dart 3.79 KB | None | 0 0
  1. import 'dart:math';
  2.  
  3. import 'package:flutter/material.dart';
  4.  
  5. //import 'package:bubble_bottom_bar/bubble_bottom_bar.dart';
  6. //import 'package:flutter_swiper/flutter_swiper.dart';
  7. //import 'package:bubble_tab_indicator/bubble_tab_indicator.dart';
  8.  
  9. void main() {
  10.   runApp(App());
  11. }
  12.  
  13. class App extends StatelessWidget {
  14.   @override
  15.   Widget build(BuildContext context) {
  16.     return MaterialApp(home: Scaffold(body: TestWidget()));
  17.   }
  18. }
  19.  
  20. class TestWidget extends StatelessWidget {
  21.   @override
  22.   Widget build(BuildContext context) {
  23.     return Column(
  24.       mainAxisSize: MainAxisSize.max,
  25.       crossAxisAlignment: CrossAxisAlignment.stretch,
  26.       children: <Widget>[
  27.         Expanded(
  28.           child: Row(
  29.             mainAxisSize: MainAxisSize.max,
  30.             crossAxisAlignment: CrossAxisAlignment.stretch,
  31.             children: <Widget>[
  32.               Expanded(
  33.                 child: Container(
  34.                   color: Colors.black,
  35.                   child: Text(
  36.                     "A",
  37.                     style: TextStyle(color: Colors.white),
  38.                   ),
  39.                 ),
  40.               ),
  41.               Expanded(
  42.                 child: Container(
  43.                   color: Colors.white,
  44.                   child: Text(
  45.                     "B",
  46.                     style: TextStyle(color: Colors.black),
  47.                   ),
  48.                 ),
  49.               ),
  50.               Expanded(
  51.                 child: Container(
  52.                   color: Colors.black,
  53.                   child: Text(
  54.                     "C",
  55.                     style: TextStyle(color: Colors.white),
  56.                   ),
  57.                 ),
  58.               )
  59.             ],
  60.           ),
  61.         ),
  62.         Expanded(
  63.           child: Row(
  64.             mainAxisSize: MainAxisSize.max,
  65.             crossAxisAlignment: CrossAxisAlignment.stretch,
  66.             children: <Widget>[
  67.               Expanded(
  68.                 child: Container(
  69.                   color: Colors.white,
  70.                   child: Text(
  71.                     "E",
  72.                     style: TextStyle(color: Colors.black),
  73.                   ),
  74.                 ),
  75.               ),
  76.               Expanded(
  77.                 child: Container(
  78.                   color: Colors.black,
  79.                   child: Text(
  80.                     "F",
  81.                     style: TextStyle(color: Colors.white),
  82.                   ),
  83.                 ),
  84.               ),
  85.               Expanded(
  86.                 child: Container(
  87.                   color: Colors.white,
  88.                   child: Text(
  89.                     "G",
  90.                     style: TextStyle(color: Colors.black),
  91.                   ),
  92.                 ),
  93.               )
  94.             ],
  95.           ),
  96.         ),
  97.         Expanded(
  98.           child: Row(
  99.             mainAxisSize: MainAxisSize.max,
  100.             crossAxisAlignment: CrossAxisAlignment.stretch,
  101.             children: <Widget>[
  102.               Expanded(
  103.                 child: Container(
  104.                   color: Colors.black,
  105.                   child: Text(
  106.                     "H",
  107.                     style: TextStyle(color: Colors.white),
  108.                   ),
  109.                 ),
  110.               ),
  111.               Expanded(
  112.                 child: Container(
  113.                   color: Colors.white,
  114.                   child: Text(
  115.                     "I",
  116.                     style: TextStyle(color: Colors.black),
  117.                   ),
  118.                 ),
  119.               ),
  120.               Expanded(
  121.                 child: Container(
  122.                   color: Colors.black,
  123.                   child: Text(
  124.                     "J",
  125.                     style: TextStyle(color: Colors.white),
  126.                   ),
  127.                 ),
  128.               )
  129.             ],
  130.           ),
  131.         )
  132.       ],
  133.     );
  134.   }
  135. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement