@@ -79,6 +79,10 @@ import 'package:tdesign_flutter/tdesign_flutter.dart';
7979
8080 <pre slot =" Dart " lang =" javascript " >
8181 Widget _buildNCustomPopover(BuildContext context) {
82+ var textStyle = TextStyle(
83+ color: theme == TDPopoverTheme.light
84+ ? TDTheme.of(context).fontGyColor1
85+ : TDTheme.of(context).fontWhColor1);
8286 return LayoutBuilder(
8387 builder: (_, constrains) {
8488 return TDButton(
@@ -91,8 +95,25 @@ import 'package:tdesign_flutter/tdesign_flutter.dart';
9195 padding: const EdgeInsets.all(0),
9296 theme: theme,
9397 width: 108,
94- height: 148,
95- contentWidget: _buildPopoverList(context),
98+ height: 152,
99+ contentWidget: Column(
100+ children: [
101+ Container(
102+ padding: const EdgeInsets.symmetric(vertical: 12, horizontal: 24),
103+ child: TDText('选项1', style: textStyle),
104+ ),
105+ const TDDivider(height: 0.5),
106+ Container(
107+ padding: const EdgeInsets.symmetric(vertical: 12, horizontal: 24),
108+ child: TDText('选项2', style: textStyle),
109+ ),
110+ const TDDivider(height: 0.5),
111+ Container(
112+ padding: const EdgeInsets.symmetric(vertical: 12, horizontal: 24),
113+ child: TDText('选项3', style: textStyle),
114+ ),
115+ ],
116+ ),
96117 );
97118 },
98119 );
0 commit comments