content: import 'package:flutter/material.dart';
  import 'package:responsive_design/layouts/res/my_colors.dart';
  
  class ExpandedFlexibleLayout extends StatelessWidget {
    @override
    Widget build(BuildContext context) {
      return Scaffold(
        backgroundColor: Colors.white,
        body: SafeArea(
          child: Column(
            children: [
              Row(
                children: [
                  ExpandedWidget(),
                  FlexibleWidget(),
                ],
              ),
              Row(
                children: [
                  ExpandedWidget(),
                  ExpandedWidget(),
                ],
              ),
              Row(
                children: [
                  FlexibleWidget(),
                  FlexibleWidget(),
                ],
              ),
              Row(
                children: [
                  FlexibleWidget(),
                  ExpandedWidget(),
                ],
              ),
            ],
          ),
        ),
      );
    }
  }
  
  class ExpandedWidget extends StatelessWidget {
    @override
    Widget build(BuildContext context) {
      return Expanded(
        child: Container(
          decoration: BoxDecoration(
            color: MyColors.darkGreen,
            border: Border.all(color: Colors.white),
          ),
          child: Padding(
            padding: const EdgeInsets.all(16.0),
            child: Text(
              'Expanded',
              style: TextStyle(color: Colors.white, fontSize: 24),
            ),
          ),
        ),
      );
    }
  }
  
  class FlexibleWidget extends StatelessWidget {
    @override
    Widget build(BuildContext context) {
      return Flexible(
        child: Container(
          decoration: BoxDecoration(
            color: MyColors.greenAccent,
            border: Border.all(color: Colors.white),
          ),
          child: Padding(
            padding: const EdgeInsets.all(16.0),
            child: Text(
              'Flexible',
              style: TextStyle(color: MyColors.darkGreen, fontSize: 24),
            ),
          ),
        ),
      );
    }
  }
  