size_configure 0.1.4

  • Readme
  • Changelog
  • Example
  • Installing
  • 20

size_configure #

SizeConfigure package helps you to make your Flutter app responsive. Just import the package and then use it to make your app responsive.

Usage #

  - use textSizeMultiplier to set Text size
  - use imageSizeMultiplier to set Image size
  - use heightMultiplier to set height size
  - use weightMultiplier to set weight size
  
  For example:
    If you want to set the text size to 28
    Divide 28 to 7.9 (because it's text, so we use 'Vertical Block Size')
    and then multiply it textSize Multiplier

if you need more examples, See setSizeExample.dart.

Notice: In this example I used Google Pixel 3 XL as the main device to config the block sizes. So the Vertical Block Size: 7.9 and the Horizontal Block Size: 4.1 is. But, you can use any devices you want.

[0.1.4] #

  • Update Example

[0.1.3] #

  • Update Example

[0.1.2] #

  • Fix the widthMultiplier issue

[0.1.0] #

  • Add widthMultiplier

[0.0.3] #

  • Some small changes in functions

[0.0.2] #

  • Update LICENSE

[0.0.1] - Release #

  • Initial release.

example/main.dart

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

void main() => runApp(MyApp());

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return LayoutBuilder(
      builder: (context, constraints) {
        return OrientationBuilder(
          builder: (context, orientation) {
            SizeConfigure().init(constraints, orientation);
            return MaterialApp(
              title: 'SizeConfigure Package Example',
            );
          },
        );
      },
    );
  }
}

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:


dependencies:
  size_configure: ^0.1.4

2. Install it

You can install packages from the command line:

with pub:


$ pub get

with Flutter:


$ flutter pub get

Alternatively, your editor might support pub get or flutter pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:


import 'package:size_configure/size_configure.dart';
  
Popularity:
Describes how popular the package is relative to other packages. [more]
40
Health:
Code health derived from static analysis. [more]
--
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
--
Overall:
Weighted score of the above. [more]
20
Learn more about scoring.

This package is not analyzed, because it is discontinued.

Health issues and suggestions

Document public APIs. (-1 points)

8 out of 8 API elements have no dartdoc comment.Providing good documentation for libraries, classes, functions, and other API elements improves code readability and helps developers find and use your API.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.0.0-dev.28.0 <3.0.0