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.
45 lines
1.2 KiB
45 lines
1.2 KiB
import 'package:flutter/material.dart';
|
|
import 'package:flutter/cupertino.dart';
|
|
import 'package:akuCommunity/utils/screenutil.dart';
|
|
import 'package:akuCommunity/base/base_style.dart';
|
|
|
|
class BottomButton extends StatefulWidget {
|
|
final String title;
|
|
final Function fun;
|
|
BottomButton({Key key, this.title, this.fun}) : super(key: key);
|
|
|
|
@override
|
|
_BottomButtonState createState() => _BottomButtonState();
|
|
}
|
|
|
|
class _BottomButtonState extends State<BottomButton> {
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Container(
|
|
alignment: Alignment.center,
|
|
height: Screenutil.length(98),
|
|
width: MediaQuery.of(context).size.width,
|
|
child: InkWell(
|
|
onTap: widget.fun,
|
|
child: Container(
|
|
alignment: Alignment.center,
|
|
color: widget.fun == null
|
|
? BaseStyle.color999999
|
|
: BaseStyle.colorffc40c,
|
|
padding: EdgeInsets.symmetric(
|
|
vertical: Screenutil.length(26.5),
|
|
),
|
|
child: Text(
|
|
widget.title,
|
|
style: TextStyle(
|
|
fontWeight: FontWeight.w600,
|
|
fontSize: BaseStyle.fontSize32,
|
|
color: BaseStyle.color333333,
|
|
),
|
|
),
|
|
),
|
|
),
|
|
);
|
|
}
|
|
}
|