parent
354759fc8b
commit
c76bfad11e
@ -1,10 +0,0 @@
|
||||
import 'package:sp_util/sp_util.dart';
|
||||
|
||||
import 'constants.dart';
|
||||
|
||||
class DataUtil {
|
||||
static saveCurrentTimeMillis(int timeStart) async {
|
||||
await SpUtil.getInstance();
|
||||
SpUtil.putInt(Constants.timeStart, timeStart);
|
||||
}
|
||||
}
|
@ -1,28 +0,0 @@
|
||||
import 'package:equatable/equatable.dart';
|
||||
import 'package:json_annotation/json_annotation.dart';
|
||||
part 'updater_model.g.dart';
|
||||
|
||||
@JsonSerializable()
|
||||
class UpdaterModel extends Equatable{
|
||||
final int id;
|
||||
final String versionNumber;
|
||||
final String buildNo;
|
||||
final int forceUpdate;
|
||||
final String createDate;
|
||||
|
||||
factory UpdaterModel.fromJson(Map<String, dynamic> json) =>_$UpdaterModelFromJson(json);
|
||||
|
||||
const UpdaterModel({
|
||||
required this.id,
|
||||
required this.versionNumber,
|
||||
required this.buildNo,
|
||||
required this.forceUpdate,
|
||||
required this.createDate,
|
||||
});
|
||||
|
||||
@override
|
||||
List<Object?> get props => [
|
||||
id,versionNumber,buildNo,forceUpdate,createDate,
|
||||
];
|
||||
}
|
||||
|
@ -1,15 +0,0 @@
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
|
||||
part of 'updater_model.dart';
|
||||
|
||||
// **************************************************************************
|
||||
// JsonSerializableGenerator
|
||||
// **************************************************************************
|
||||
|
||||
UpdaterModel _$UpdaterModelFromJson(Map<String, dynamic> json) => UpdaterModel(
|
||||
id: json['id'] as int,
|
||||
versionNumber: json['versionNumber'] as String,
|
||||
buildNo: json['buildNo'] as String,
|
||||
forceUpdate: json['forceUpdate'] as int,
|
||||
createDate: json['createDate'] as String,
|
||||
);
|
@ -0,0 +1,65 @@
|
||||
import 'package:aku_new_community/utils/headers.dart';
|
||||
import 'package:aku_new_community/widget/bee_divider.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
class BeeCustomDialog extends StatelessWidget {
|
||||
final List<Widget> actions;
|
||||
final Widget content;
|
||||
|
||||
const BeeCustomDialog(
|
||||
{Key? key, required this.actions, required this.content})
|
||||
: super(key: key);
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Center(
|
||||
child: Container(
|
||||
width: 600.w,
|
||||
height: 700.w,
|
||||
clipBehavior: Clip.antiAliasWithSaveLayer,
|
||||
decoration: BoxDecoration(
|
||||
color: Colors.white,
|
||||
borderRadius: BorderRadius.circular(24.w),
|
||||
),
|
||||
child: Material(
|
||||
child: Container(
|
||||
decoration: BoxDecoration(
|
||||
gradient: LinearGradient(
|
||||
begin: Alignment.topCenter,
|
||||
end: Alignment.bottomCenter,
|
||||
stops: [
|
||||
0,
|
||||
0.3,
|
||||
],
|
||||
colors: [
|
||||
Color(0x33FBE541),
|
||||
Colors.white,
|
||||
])),
|
||||
child: Column(
|
||||
children: [
|
||||
content,
|
||||
Spacer(),
|
||||
BeeDivider.horizontal(),
|
||||
ConstrainedBox(
|
||||
constraints: BoxConstraints(maxHeight: 100.w),
|
||||
child: Row(
|
||||
children: actions
|
||||
.map((e) => Expanded(child: e))
|
||||
.toList()
|
||||
.sepWidget(
|
||||
separate: Container(
|
||||
width: 2.w,
|
||||
height: double.infinity,
|
||||
color: Color(0xFFF0F0F0),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
Loading…
Reference in new issue