echo_utils

Creator: coderz1093

Last updated:

0 purchases

echo_utils Image
echo_utils Images

Languages

Categories

Add to Cart

Description:

echo utils

一些简单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);
},),
],
),
),
);
}
}

copied to clipboard
Additional information #
欢迎大家使用提出建议

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.