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

outdated

A set of general utilites usually needed for any project.

example/lib/main.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: DataLoadingWidget(title: 'Loading ....'),
        footer: Container(
          color: Colors.grey[100],
          height: 60.0,
          child: Center(
              child: RaisedButton(
            onPressed: () =>
                Utilities.showSnackBar(context, 'Snackbar widget !'),
            child: Text('Show snackbar!'),
          )),
        ),
      ),
    );
  }
}
0
likes
0
pub points
22%
popularity

Publisher

unverified uploader

A set of general utilites usually needed for any project.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on general_utilities