fluid_kit 1.0.0 copy "fluid_kit: ^1.0.0" to clipboard
fluid_kit: ^1.0.0 copied to clipboard

outdated

Responsive helper for fluid layout. Allows you to control the layout of children based on minimum width and grid.

example/lib/main.dart

import 'package:fluid_kit/fluid_kit.dart';
import 'package:flutter/material.dart';

void main() {
  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Fluid Demo',
      theme: ThemeData(
        primarySwatch: Colors.teal,
      ),
      home: DemoScreen(),
    );
  }
}

class DemoScreen extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: Center(
        child: Fluid(
          children: [
            Fluidable(
              fluid: 1,
              minWidth: 300,
              child: Container(
                color: Color(0xFF25B2BD),
                height: 200,
                child: Placeholder(),
              ),
            ),
            Fluidable(
              fluid: 2,
              child: Container(
                constraints: BoxConstraints(
                  minWidth: 320,
                ),
                color: Color(0xFFC42690),
                height: 200,
                child: Placeholder(),
              ),
            ),
            Fluidable(
              fluid: 1,
              minWidth: 200,
              child: Container(
                color: Color(0xFF256BBD),
                height: 200,
                child: Placeholder(),
              ),
            ),
          ],
        ),
      ),
    );
  }
}
86
likes
0
pub points
76%
popularity

Publisher

verified publisheramazingsoftworks.com

Responsive helper for fluid layout. Allows you to control the layout of children based on minimum width and grid.

Homepage
Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on fluid_kit