feat:增加日程模块
This commit is contained in:
@@ -1,11 +1,24 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:toggle_switch/toggle_switch.dart';
|
||||
|
||||
BoxDecoration buildBoxDecoration() {
|
||||
return BoxDecoration(
|
||||
color: Colors.white,
|
||||
OutlineInputBorder buildFormBoard() {
|
||||
return OutlineInputBorder(
|
||||
borderRadius: BorderRadius.circular(12),
|
||||
border: Border.all(color: Colors.grey[200]!, width: 1),
|
||||
borderSide: BorderSide(color: Colors.grey.shade200),
|
||||
);
|
||||
}
|
||||
|
||||
OutlineInputBorder buildFormEnabledBoard() {
|
||||
return OutlineInputBorder(
|
||||
borderRadius: BorderRadius.circular(12),
|
||||
borderSide: BorderSide(color: Colors.grey.shade200),
|
||||
);
|
||||
}
|
||||
|
||||
OutlineInputBorder buildFormFocusedBoard(ColorScheme colors) {
|
||||
return OutlineInputBorder(
|
||||
borderRadius: BorderRadius.circular(12),
|
||||
borderSide: BorderSide(color: colors.primary),
|
||||
);
|
||||
}
|
||||
|
||||
@@ -130,7 +143,7 @@ Widget buildDismissible({
|
||||
background: _buildDismissBackground(),
|
||||
confirmDismiss: (direction) async {
|
||||
// 这里实现二次确认
|
||||
return await _showDeleteConfirmationDialog(context);
|
||||
return await showDeleteConfirmationDialog(context);
|
||||
},
|
||||
onDismissed: (direction) {
|
||||
onDelete();
|
||||
@@ -140,7 +153,7 @@ Widget buildDismissible({
|
||||
}
|
||||
|
||||
// 确认对话框
|
||||
Future<bool?> _showDeleteConfirmationDialog(BuildContext context) async {
|
||||
Future<bool?> showDeleteConfirmationDialog(BuildContext context) async {
|
||||
return showDialog<bool>(
|
||||
context: context,
|
||||
builder: (BuildContext context) {
|
||||
|
||||
Reference in New Issue
Block a user