flutter_lifecycle 0.2.0 copy "flutter_lifecycle: ^0.2.0" to clipboard
flutter_lifecycle: ^0.2.0 copied to clipboard

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(),
    );
  }
}
3
likes
40
points
31
downloads

Publisher

unverified uploader

Weekly Downloads

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

Repository (GitHub)

License

MIT (license)

Dependencies

flutter

More

Packages that depend on flutter_lifecycle