dxwidget 0.0.3
dxwidget: ^0.0.3 copied to clipboard
An package of Flutter components for mobile applications.
example/lib/main.dart
import 'package:example/widgets/actionSheet.dart';
import 'package:flutter/material.dart';
void main() async => runApp(const MyApp());
class MyApp extends StatefulWidget {
const MyApp({Key? key}) : super(key: key);
@override
State<MyApp> createState() => _MyAppState();
}
class _MyAppState extends State<MyApp> {
@override
void initState() {
super.initState();
}
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'DxWidget演示',
debugShowCheckedModeBanner: false,
theme: ThemeData(
primarySwatch: Colors.blue,
),
home: const MyHomePage(),
);
}
}
class MyHomePage extends StatefulWidget {
const MyHomePage({Key? key}) : super(key: key);
@override
State<MyHomePage> createState() => _MyHomePageState();
}
class _MyHomePageState extends State<MyHomePage> {
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: const Text('DxWidget演示'),
centerTitle: true,
),
body: Container(
color: const Color(0xfff7f8fa),
child: SafeArea(
child: SingleChildScrollView(
child: Column(
children: const <Widget>[
// DemoButton(),
// DemoCell(),
// DemoPanel(),
// DemoPrice(),
// DemoDialog(),
// DemoShareSheet(),
DemoActionSheet()
],
),
),
),
),
);
}
}