Skip to content

Instantly share code, notes, and snippets.

View tudor07's full-sized avatar

Tudor Prodan tudor07

View GitHub Profile
@tudor07
tudor07 / custom_dropdown.dart
Created September 2, 2019 10:15
DropdownButton with custom height for list of options
/// DropdownButton from material.dart does not allow to set a height
/// for the list of options inside it.
/// This is a copy of the Flutter's code which allows setting height also.
/// Once Flutter adds this in the framework this should be removed.
// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'dart:math' as math;