diff --git a/lib/ui/account/delete_account_page.dart b/lib/ui/account/delete_account_page.dart index a7ef7d273..a6f445f2d 100644 --- a/lib/ui/account/delete_account_page.dart +++ b/lib/ui/account/delete_account_page.dart @@ -1,5 +1,6 @@ import 'dart:convert'; +import "package:dropdown_button2/dropdown_button2.dart"; import 'package:flutter/material.dart'; import "package:logging/logging.dart"; import 'package:photos/core/configuration.dart'; @@ -66,18 +67,13 @@ class _DeleteAccountPageState extends State { Container( width: double.infinity, height: 48, - padding: const EdgeInsets.only(left: 16, right: 6), decoration: BoxDecoration( color: colorScheme.fillFaint, borderRadius: BorderRadius.circular(8), ), - child: DropdownButton( + child: DropdownButton2( alignment: AlignmentDirectional.topStart, value: dropdownValue, - icon: Icon( - Icons.expand_more_outlined, - color: colorScheme.strokeMuted, - ), onChanged: (String? newValue) { setState(() { dropdownValue = newValue!; diff --git a/pubspec.lock b/pubspec.lock index d947ccd87..32aeb5e61 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -320,6 +320,14 @@ packages: url: "https://pub.dev" source: hosted version: "2.0.0+3" + dropdown_button2: + dependency: "direct main" + description: + name: dropdown_button2 + sha256: "4458d81bfd24207f3d58f66f78097064e02f810f94cf1bc80bf20fe7685ebc80" + url: "https://pub.dev" + source: hosted + version: "2.0.0" email_validator: dependency: "direct main" description: diff --git a/pubspec.yaml b/pubspec.yaml index 09f0514fd..fa9e0f6ae 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -37,6 +37,7 @@ dependencies: dio: ^4.0.6 dots_indicator: ^2.0.0 dotted_border: ^2.0.0+2 + dropdown_button2: ^2.0.0 email_validator: ^2.0.1 equatable: ^2.0.5 event_bus: ^2.0.0