flexify 2.0.1 copy "flexify: ^2.0.1" to clipboard
flexify: ^2.0.1 copied to clipboard

AFlexify is a Flutter package for responsive design and simplified navigation. Easily adapt interfaces to any screen size and smooth page transitions with customizable animations.

example/lib/main.dart

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

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

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    //Wrap your app with Flexify for initialize
    return Flexify(
      designWidth: 375,
      designHeight: 812,
      app: MaterialApp(
        home: ExampleScreen(),
      ),
    );
  }
}

class ExampleScreen extends StatelessWidget {
  const ExampleScreen({super.key});

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: Center(
        child: Column(
          mainAxisAlignment: MainAxisAlignment.center,
          children: [
            Container(
              width: 250.rw, //responsive width
              height: 250.rh, //responsive height
              decoration: BoxDecoration(
                color: Colors.blue,
                borderRadius: BorderRadius.circular(25.rs), // responsive size
              ),
              child: Center(
                child: Text(
                  'This is a Responsive Text',
                  style: TextStyle(
                    fontSize: 22.rt,
                    fontWeight: FontWeight.w700,
                  ),
                ),
              ),
            ),
            20.verticalSpace, // SizedBox(height:20.rh) responsive vertical space
            20.horizontalSpace, // SizedBox(width: 20.rw) responsive horizontal space

            /*

           - Easy Navigations with Animations

             Flexify.go(
              NewScreen(),
              animation: FlexifyRouteAnimations.fade,
              duration: Duration(milliseconds: 500));

             Flexify.goRemove(
              NewScreen(),
              animation: FlexifyRouteAnimations.slide,
              duration: Duration(milliseconds: 500));

             Flexify.goRemoveAll(
               NewScreen(),
               animation: FlexifyRouteAnimations.scale,
               duration: Duration(milliseconds: 500));

             Flexify.back();


           - Available Animations

            FlexifyRouteAnimations.fade
            FlexifyRouteAnimations.slide
            FlexifyRouteAnimations.scale
            FlexifyRouteAnimations.rotate
            FlexifyRouteAnimations.zoom
            FlexifyRouteAnimations.size
            FlexifyRouteAnimations.elastic

            */
          ],
        ),
      ),
    );
  }
}
45
likes
0
points
38
downloads

Publisher

unverified uploader

Weekly Downloads

AFlexify is a Flutter package for responsive design and simplified navigation. Easily adapt interfaces to any screen size and smooth page transitions with customizable animations.

Homepage
Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on flexify