echo_utils 0.1.4 copy "echo_utils: ^0.1.4" to clipboard
echo_utils: ^0.1.4 copied to clipboard

一些小工具,some small tools

一些简单widget,方便少写代码

Features #

封装了一些简单widget

Getting started #

import 'packages:echo_utils/echo_utils.dart'

Usage 简单使用 #

import 'package:echo_utils/echo_utils.dart';
import 'package:flutter/material.dart';

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

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

  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: const MyHomePage(title: 'Flutter Demo Home Page'),
    );
  }
}

class MyHomePage extends StatefulWidget {
  const MyHomePage({super.key, required this.title});
  final String title;

  @override
  State<MyHomePage> createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text(widget.title),
      ),
      body: Center(
        child: Column(
          mainAxisAlignment: MainAxisAlignment.center,
          children: <Widget>[
            EchoButton(buttonName: 'echoButton', onPressed: () {
              List<BottomSheetModel> modes = [
                BottomSheetModel(title: "title", onPressed: (){},preWidget: const Icon(Icons.add)),
                BottomSheetModel(title: "title2", onPressed: (){}),
              ];
              echoBottomSheet(context, modes);
            },),
          ],
        ),
      ),
    );
  }
}

Additional information #

欢迎大家使用提出建议

0
likes
130
points
37
downloads

Publisher

unverified uploader

Weekly Downloads

一些小工具,some small tools

Repository (GitHub)
View/report issues

Documentation

API reference

License

Apache-2.0 (license)

Dependencies

flutter, flutter_screenutil, get, intl, package_info_plus, path_provider, permission_handler, qr_flutter

More

Packages that depend on echo_utils