diff --git a/lib/ui/widgets/common/bee_picker_box.dart b/lib/ui/widgets/common/bee_picker_box.dart index 95aefb8..0d7d666 100644 --- a/lib/ui/widgets/common/bee_picker_box.dart +++ b/lib/ui/widgets/common/bee_picker_box.dart @@ -42,9 +42,11 @@ class BeePickerBox extends StatelessWidget { SizedBox( height: 88.w, child: NavigationToolbar( - leading: _buildButton( - title: '取消', + leading: TextButton( onPressed: () => Navigator.pop(context), + child: Text( + '取消', + ), ), middle: Text( title ?? '', @@ -53,9 +55,11 @@ class BeePickerBox extends StatelessWidget { fontSize: 28.sp, ), ), - trailing: _buildButton( - title: confirmString, + trailing: TextButton( onPressed: onPressed, + child: Text( + '${confirmString}', + ), ), ), ), diff --git a/pubspec.lock b/pubspec.lock index b6a3240..7036f2a 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -618,13 +618,6 @@ packages: url: "https://pub.dartlang.org" source: hosted version: "0.12.11" - material_color_utilities: - dependency: transitive - description: - name: material_color_utilities - url: "https://pub.dartlang.org" - source: hosted - version: "0.1.3" meta: dependency: transitive description: @@ -965,7 +958,7 @@ packages: name: test_api url: "https://pub.dartlang.org" source: hosted - version: "0.4.8" + version: "0.4.3" time: dependency: transitive description: