flutter_view_widgets 2.2.5-dev.1 copy "flutter_view_widgets: ^2.2.5-dev.1" to clipboard
flutter_view_widgets: ^2.2.5-dev.1 copied to clipboard

Flutter Dart tools library for flutter-view. These widgets allow some extra functionality for flutter-view, and are highly recommended for your flutter-view projects.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'example_page.dart';
import 'example_model.dart';

void main() => runApp(const ExampleApp());

class ExampleApp extends StatefulWidget {
  const ExampleApp({Key? key}) : super(key: key);

  @override
  State<StatefulWidget> createState() => _ExampleAppState();
}

class _ExampleAppState extends State<ExampleApp> {
  /// The state of the app. Because it extends [Model], it can inform the [ReactiveWidget]
  /// in the [ExamplePage] that it has updated, causing a rerender of the child of the [ReactiveWidget]
  late ExampleModel model;

  @override
  void initState() {
    /// Create the app state
    model = ExampleModel();
    super.initState();
  }

  @override
  Widget build(BuildContext context) => MaterialApp(
        title: 'Example',

        /// Render the homepage by callig the [ExamplePage] method, passing in the model
        home: ExamplePage(model: model),
      );
}
4
likes
125
pub points
51%
popularity

Publisher

unverified uploader

Flutter Dart tools library for flutter-view. These widgets allow some extra functionality for flutter-view, and are highly recommended for your flutter-view projects.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (LICENSE)

Dependencies

flutter, scoped_model

More

Packages that depend on flutter_view_widgets