flutter_lifecycle 0.2.0
flutter_lifecycle: ^0.2.0 copied to clipboard

Flutter Android iOS web

Get access to Flutter's life cycle on StatelessWidgets. It adds the ability to run onInit and onDispose to StatelessWidget

example/lib/main.dart

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

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

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Lifecycle',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: HomePage(),
    );
  }
}
2
likes
100
pub points
59%
popularity

Get access to Flutter's life cycle on StatelessWidgets. It adds the ability to run onInit and onDispose to StatelessWidget

Repository (GitHub)
View/report issues

Documentation

API reference

Uploader

everton.build@gmail.com

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on flutter_lifecycle