mirrored_repositories/loginui/lib
import 'package:flutter/material.dart';
import 'package:flutter/rendering.dart';

class Responsive extends StatelessWidget {
  final Widget mobile;
  final Widget tab;

  const Responsive({Key? key, required this.mobile, required this.tab})
      : super(key: key);

  @override
  Widget build(BuildContext context) {
    return LayoutBuilder(builder: (context, constraints) {
      if (constraints.maxWidth < 560) {
        return mobile;
      } else {
        return tab;
      }
    });
  }
}
