m7utils 0.1.5 copy "m7utils: ^0.1.5" to clipboard
m7utils: ^0.1.5 copied to clipboard

A Helper package for fast development.

m7utils #

A Simple Dart Package that helps to fast development

1- gives screen width using extension

2- gives screen height using extension

3- gives app theme using extension

4- gives app text theme using extension

5- helps with translation

6- gives default AppLocalization class

Whats will you get in the end #

import 'package:m7utils/m7utils.dart';


main(){
    // the width
    context.width;

    // the height
    context.height;

    // the app them
    context.theme;

    // the app text them 
    context.textTheme;

    // to return to the prevouis page in the stack
    context.pop();

    context.popWithResult("dynamic");

    // if you are using assets/lang/localeCode.json
    context.translate('key');

    // for navigation
    context.navigateTo(Scaffold(),clearStack:false);
    context.navigateToByTag('/loginPage',clearStack:true);
}  
1
likes
50
pub points
0%
popularity

Publisher

unverified uploader

A Helper package for fast development.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-2-Clause (LICENSE)

Dependencies

flutter, flutter_localizations, m7db, provider, shared_preferences

More

Packages that depend on m7utils