Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import 'dart:math';
- import 'package:flutter/material.dart';
- //import 'package:bubble_bottom_bar/bubble_bottom_bar.dart';
- //import 'package:flutter_swiper/flutter_swiper.dart';
- //import 'package:bubble_tab_indicator/bubble_tab_indicator.dart';
- void main() {
- runApp(App());
- }
- class App extends StatelessWidget {
- @override
- Widget build(BuildContext context) {
- return MaterialApp(home: Scaffold(body: TestWidget()));
- }
- }
- class TestWidget extends StatelessWidget {
- @override
- Widget build(BuildContext context) {
- return Column(
- mainAxisSize: MainAxisSize.max,
- crossAxisAlignment: CrossAxisAlignment.stretch,
- children: <Widget>[
- Expanded(
- child: Row(
- mainAxisSize: MainAxisSize.max,
- crossAxisAlignment: CrossAxisAlignment.stretch,
- children: <Widget>[
- Expanded(
- child: Container(
- color: Colors.black,
- child: Text(
- "A",
- style: TextStyle(color: Colors.white),
- ),
- ),
- ),
- Expanded(
- child: Container(
- color: Colors.white,
- child: Text(
- "B",
- style: TextStyle(color: Colors.black),
- ),
- ),
- ),
- Expanded(
- child: Container(
- color: Colors.black,
- child: Text(
- "C",
- style: TextStyle(color: Colors.white),
- ),
- ),
- )
- ],
- ),
- ),
- Expanded(
- child: Row(
- mainAxisSize: MainAxisSize.max,
- crossAxisAlignment: CrossAxisAlignment.stretch,
- children: <Widget>[
- Expanded(
- child: Container(
- color: Colors.white,
- child: Text(
- "E",
- style: TextStyle(color: Colors.black),
- ),
- ),
- ),
- Expanded(
- child: Container(
- color: Colors.black,
- child: Text(
- "F",
- style: TextStyle(color: Colors.white),
- ),
- ),
- ),
- Expanded(
- child: Container(
- color: Colors.white,
- child: Text(
- "G",
- style: TextStyle(color: Colors.black),
- ),
- ),
- )
- ],
- ),
- ),
- Expanded(
- child: Row(
- mainAxisSize: MainAxisSize.max,
- crossAxisAlignment: CrossAxisAlignment.stretch,
- children: <Widget>[
- Expanded(
- child: Container(
- color: Colors.black,
- child: Text(
- "H",
- style: TextStyle(color: Colors.white),
- ),
- ),
- ),
- Expanded(
- child: Container(
- color: Colors.white,
- child: Text(
- "I",
- style: TextStyle(color: Colors.black),
- ),
- ),
- ),
- Expanded(
- child: Container(
- color: Colors.black,
- child: Text(
- "J",
- style: TextStyle(color: Colors.white),
- ),
- ),
- )
- ],
- ),
- )
- ],
- );
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement