flutter_ecosed 0.0.4 copy "flutter_ecosed: ^0.0.4" to clipboard
flutter_ecosed: ^0.0.4 copied to clipboard

discontinuedreplaced by: freefeos

FlutterEcosed is a Flutter plugin and an advanced Flutter development framework that provides Android platform debugging, plugin development and dashboard functions.

example/lib/main.dart

import 'package:dynamic_color/dynamic_color.dart';
import 'package:flutter/material.dart';
import 'package:flutter_ecosed/flutter_ecosed.dart';

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

class ExampleApp extends EcosedPlugin {
  const ExampleApp({super.key});

  @override
  String pluginAuthor() => 'ExampleApp';

  @override
  String pluginChannel() => 'ExampleApp';

  @override
  String pluginDescription() => 'ExampleApp';

  @override
  String pluginName() => 'ExampleApp';

  @override
  State<ExampleApp> createState() => _ExampleAppState();

  @override
  Future<Object?> onPlatformCall(String name) async {
    return null;
  }
}

class _ExampleAppState extends State<ExampleApp> {
  static const String appName = 'flutter_ecosed 示例应用';

  @override
  Widget build(BuildContext context) {
    return DynamicColorBuilder(
      builder: (ColorScheme? lightDynamic, ColorScheme? darkDynamic) {
        return MaterialApp(
          home: EcosedApp(
            home: (exec, body) {
              return body;
            },
            plugins: [widget],
            title: appName,
            location: BannerLocation.topStart,
            scaffold: (body) {
              return Scaffold(
                appBar: AppBar(
                  title: const Text(appName),
                ),
                body: body,
              );
            },
          ),
          title: appName,
          theme: ThemeData(
            colorScheme: lightDynamic,
            useMaterial3: true,
          ),
          darkTheme: ThemeData(
            colorScheme: darkDynamic,
            useMaterial3: true,
          ),
          themeMode: ThemeMode.system,
        );
      },
    );
  }
}
1
likes
0
pub points
0%
popularity

Publisher

unverified uploader

FlutterEcosed is a Flutter plugin and an advanced Flutter development framework that provides Android platform debugging, plugin development and dashboard functions.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, flutter_plugin_android_lifecycle, plugin_platform_interface

More

Packages that depend on flutter_ecosed