widget_modifier 0.1.1 copy "widget_modifier: ^0.1.1" to clipboard
widget_modifier: ^0.1.1 copied to clipboard

A collection of built-in flutter widget modifiers, which flatten the widget tree and make it easier to read

example/lib/main.dart

// ignore_for_file: unused_import
import 'package:example/benchmark/benchmark_view.dart';
import 'package:example/benchmark/complex_benchmark_view.dart';
import 'package:example/benchmark/modifier_complex_benchmark_view.dart';
import 'package:example/benchmark/modifier_benchmark_view.dart';
import 'package:example/homework_reminder_ui/home_view.dart';
import 'package:example/homework_reminder_ui/modifier_home_view.dart';
import 'package:flex_color_scheme/flex_color_scheme.dart';
import 'package:flutter/material.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    final theme = FlexColorScheme.light(
      scheme: FlexScheme.amber,
      useMaterial3: true,
    ).toTheme;
    final darkTheme = FlexColorScheme.dark(
      scheme: FlexScheme.amber,
      useMaterial3: true,
    ).toTheme;

    return MaterialApp(
      title: 'Homework tracker',
      theme: theme,
      darkTheme: darkTheme,
      themeMode: ThemeMode.light,
      home: const HomeView(),
      // home: const ModifierHomeView(),
      // home: const ModifierBenchmarkView(),
      // home: const BenchmarkView(),
      // home: const ModifierComplexBenchmarkView(),
      // home: const ComplexBenchmarkView(),
    );
  }
}
26
likes
90
points
20
downloads

Publisher

unverified uploader

Weekly Downloads

A collection of built-in flutter widget modifiers, which flatten the widget tree and make it easier to read

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

flutter, vector_math

More

Packages that depend on widget_modifier