You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

59 lines
1.3 KiB

import 'package:ansu_ui/ansu_ui.dart';
4 years ago
import 'package:ansu_ui/buttons/as_button.dart';
4 years ago
import 'package:flutter/material.dart';
import 'package:get/get.dart';
import 'example_scaffold.dart';
4 years ago
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return GetMaterialApp(
4 years ago
title: 'Flutter Demo',
home: _ScreenAdapter(),
4 years ago
);
}
}
class _ScreenAdapter extends StatelessWidget {
@override
Widget build(BuildContext context) {
ScreenUtil.init(context,
designSize: Size(375, 812), allowFontScaling: false);
return MyHomePage();
}
}
4 years ago
class MyHomePage extends StatefulWidget {
MyHomePage({Key key}) : super(key: key);
4 years ago
@override
_MyHomePageState createState() => _MyHomePageState();
}
class _MyHomePageState extends State<MyHomePage> {
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text('title'),
4 years ago
),
4 years ago
body: ListView(
children: [
ASButton.delete('删除订单', (){}),
SizedBox(height: 12.w),
TextButton(
onPressed: () {
Get.to(ExampleScaffold());
},
child: Text('SCAFFOLD')),
4 years ago
],
4 years ago
),
);
}
}