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(),
    );
  }
}
2
likes
40
pub points
29%
popularity

Publisher

unverified uploader

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

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on flutter_lifecycle