general_utilities 0.0.5 copy "general_utilities: ^0.0.5" to clipboard
general_utilities: ^0.0.5 copied to clipboard

outdated

A set of general utilites usually needed for any project.

example/lib/main.dart

import 'package:example/test_responsive.dart';
import 'package:flutter/material.dart';
import 'package:general_utilities/general_utilities.dart';

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

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'General Utilities',
      theme: ThemeData(
        primarySwatch: Colors.blue,
        visualDensity: VisualDensity.adaptivePlatformDensity,
      ),
      home: MyHomePage(),
    );
  }
}

class MyHomePage extends StatefulWidget {
  @override
  _MyHomePageState createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text('General Utilities'),
      ),
      body: FooterLayout(
        body: Column(
          children: [
            NoDataWidget(
              title: 'No data found',
              asset: 'assets/images/ic_svg.svg',
              isSVG: true,
            ),
            RaisedButton(
                child: Text('Test Responsive'),
                onPressed: () => Navigator.of(context).push(
                    WidgetRouteAnimation(
                        builder: (context) => TestResponsive(),
                        animationDirection:
                            AnimationDirection.from_bottom_to_top)))
          ],
        ),
        footer: Container(
          color: Colors.grey[100],
          height: 60.0,
          child: Center(
              child: RaisedButton(
            onPressed: () => Utilities.showSnackBar(
                context, 'Snackbar widget !',
                msgStyle: TextStyle(color: Colors.red),
                backgroundColor: Colors.green),
            child: Text('Show snackbar!'),
          )),
        ),
      ),
    );
  }
}
0
likes
0
pub points
11%
popularity

Publisher

unverified uploader

A set of general utilites usually needed for any project.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter, flutter_svg

More

Packages that depend on general_utilities