-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Closed
Labels
P3Issues that are less important to the Flutter projectIssues that are less important to the Flutter projectc: proposalA detailed proposal for a change to FlutterA detailed proposal for a change to Flutterf: material designflutter/packages/flutter/material repository.flutter/packages/flutter/material repository.frameworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.team-designOwned by Design Languages teamOwned by Design Languages teamtriaged-designTriaged by Design Languages teamTriaged by Design Languages team
Description
in this simple implementation code i added some PopupMenuButton items into AppBar actions argument and now i want to styling PopupMenuDivider color which that have default color.
i try to use ThemeData but i get error:
ThemeData(
child: const PopupMenuDivider(
height: 10,
),
),my code:
PopupMenuButton<int>(
onSelected: null,
icon: const Icon(Icons.more_vert),
color: const Color(0xFF32313C).withOpacity(0.9),
elevation: 8.0,
shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(8.0)),
itemBuilder: (context) {
final list = <PopupMenuEntry<int>>[];
list.add(
PopupMenuItem(
child: Row(
children: [
Icon(Icons.add, color: Colors.white),
Text(
"InduceSmile.com",
style: TextStyle(color: Colors.white),
).pl(16.0),
],
),
),
);
list.add(
const PopupMenuDivider(
height: 10,
),
);
return list;
},
offset: Offset(0, 100),
)AriasBros
Metadata
Metadata
Assignees
Labels
P3Issues that are less important to the Flutter projectIssues that are less important to the Flutter projectc: proposalA detailed proposal for a change to FlutterA detailed proposal for a change to Flutterf: material designflutter/packages/flutter/material repository.flutter/packages/flutter/material repository.frameworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.team-designOwned by Design Languages teamOwned by Design Languages teamtriaged-designTriaged by Design Languages teamTriaged by Design Languages team