Use a better Dropdown library
This commit is contained in:
parent
287ccdb4f2
commit
464402baf4
3 changed files with 11 additions and 6 deletions
|
@ -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<DeleteAccountPage> {
|
|||
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<String>(
|
||||
child: DropdownButton2<String>(
|
||||
alignment: AlignmentDirectional.topStart,
|
||||
value: dropdownValue,
|
||||
icon: Icon(
|
||||
Icons.expand_more_outlined,
|
||||
color: colorScheme.strokeMuted,
|
||||
),
|
||||
onChanged: (String? newValue) {
|
||||
setState(() {
|
||||
dropdownValue = newValue!;
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue