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

一些小工具,some small tools

example/lib/main.dart

import 'package:echo_utils/echo_utils.dart';
import 'package:flutter/cupertino.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>[
             CupertinoTextField(
               decoration: const BoxDecoration(color: Colors.white),

              suffix: IconButton(onPressed: (){

              }, icon: const Icon(Icons.clear_rounded)),
              maxLines: 5,
            ),
            EchoButton(buttonName: 'echoButton', onPressed: () {
              List<BottomSheetModel> modes = [
                BottomSheetModel(title: "title", onPressed: (context){},preWidget: const Icon(Icons.add)),
                BottomSheetModel(title: "title2", onPressed: (context){}),
              ];
              echoBottomSheet(context, modes);
            },),
          ],
        ),
      ),
    );
  }
}
0
likes
0
points
40
downloads

Publisher

unverified uploader

Weekly Downloads

一些小工具,some small tools

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, get, intl, permission_handler

More

Packages that depend on echo_utils