详情里的对话框切换动画ok
This commit is contained in:
@@ -8,9 +8,8 @@ import 'package:remixicon/remixicon.dart';
|
||||
|
||||
import '../widgets/edit_desc_dialog.dart';
|
||||
import 'widgets/avatar_card.dart';
|
||||
import 'widgets/plan_item.dart';
|
||||
import 'widgets/coach_message.dart';
|
||||
import 'widgets/scroll_box.dart';
|
||||
import 'widgets/suggested.dart';
|
||||
|
||||
class PlanDetailPage extends StatefulWidget {
|
||||
final String? id;
|
||||
@@ -55,7 +54,11 @@ class _PlanDetailPageState extends State<PlanDetailPage> {
|
||||
Widget build(BuildContext context) {
|
||||
return ChangeNotifierProvider<PlanDetailStore>(
|
||||
create: (_) {
|
||||
return PlanDetailStore();
|
||||
return PlanDetailStore(
|
||||
planId: widget.id.toString(),
|
||||
planContent: widget.planName ?? "",
|
||||
showRoleTalk: widget.planName == null,
|
||||
);
|
||||
},
|
||||
child: CupertinoPageScaffold(
|
||||
backgroundColor: Colors.white,
|
||||
@@ -108,31 +111,32 @@ class _PlanDetailPageState extends State<PlanDetailPage> {
|
||||
decoration: shadowDecoration,
|
||||
child: CustomScrollView(
|
||||
slivers: [
|
||||
SliverToBoxAdapter(
|
||||
child: SizedBox(height: 20),
|
||||
),
|
||||
SliverList.builder(
|
||||
itemBuilder: (BuildContext context, int index) {
|
||||
return PlanItem(
|
||||
showEdit: _isEdit,
|
||||
title: "测试 ${index + 1}",
|
||||
desc: "测测 ${index + 1}",
|
||||
onDelete: (id) {},
|
||||
);
|
||||
},
|
||||
itemCount: 10,
|
||||
),
|
||||
SliverToBoxAdapter(
|
||||
child: SuggestedTitle(),
|
||||
),
|
||||
SliverList.builder(
|
||||
itemBuilder: (BuildContext context, int index) {
|
||||
return SuggestedItem(
|
||||
title: "测试",
|
||||
);
|
||||
},
|
||||
itemCount: 5,
|
||||
),
|
||||
CoachMessage(),
|
||||
// SliverToBoxAdapter(
|
||||
// child: SizedBox(height: 20),
|
||||
// ),
|
||||
// SliverList.builder(
|
||||
// itemBuilder: (BuildContext context, int index) {
|
||||
// return PlanItem(
|
||||
// showEdit: _isEdit,
|
||||
// title: "测试 ${index + 1}",
|
||||
// desc: "测测 ${index + 1}",
|
||||
// onDelete: (id) {},
|
||||
// );
|
||||
// },
|
||||
// itemCount: 10,
|
||||
// ),
|
||||
// SliverToBoxAdapter(
|
||||
// child: SuggestedTitle(),
|
||||
// ),
|
||||
// SliverList.builder(
|
||||
// itemBuilder: (BuildContext context, int index) {
|
||||
// return SuggestedItem(
|
||||
// title: "测试",
|
||||
// );
|
||||
// },
|
||||
// itemCount: 5,
|
||||
// ),
|
||||
],
|
||||
),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user