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.
|
|
|
import 'package:flutter/cupertino.dart';
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
import 'package:project_telephony/utils/headers.dart';
|
|
|
|
|
|
|
|
class CloudBackButton extends StatelessWidget {
|
|
|
|
final Color color;
|
|
|
|
final bool isSpecial;
|
|
|
|
final bool isSpecials;
|
|
|
|
const CloudBackButton({
|
|
|
|
Key? key,
|
|
|
|
this.color = const Color(0xFF111111),
|
|
|
|
this.isSpecial = false,
|
|
|
|
this.isSpecials=true,
|
|
|
|
});
|
|
|
|
|
|
|
|
@override
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
return Navigator.canPop(context)
|
|
|
|
? Padding(
|
|
|
|
padding: isSpecial ? EdgeInsets.only(left: 8.w) : EdgeInsets.zero,
|
|
|
|
child: IconButton(
|
|
|
|
onPressed: () {
|
|
|
|
print("返回传值");
|
|
|
|
Navigator.pop(context,true);
|
|
|
|
isSpecials? Get.back():"";
|
|
|
|
|
|
|
|
},
|
|
|
|
icon: Icon(
|
|
|
|
CupertinoIcons.chevron_back,
|
|
|
|
color: color,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
)
|
|
|
|
: const SizedBox();
|
|
|
|
}
|
|
|
|
}
|