TF-2101 Add date selection field widget
(cherry picked from commit 9dccc8f1ad3aa89bf5cd4e2721ba8ff5dfa19858)
This commit is contained in:
+39
@@ -0,0 +1,39 @@
|
||||
import 'package:dropdown_button2/dropdown_button2.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
class DateSelectionDropdownButtonStyles {
|
||||
static const double height = 44.0;
|
||||
static const double borderWidth = 0.5;
|
||||
static const double dropdownMaxHeight = 200.0;
|
||||
static const double scrollbarThickness = 6.0;
|
||||
static const double checkedIconSize = 20.0;
|
||||
|
||||
static const int dropdownElevation = 4;
|
||||
|
||||
static const Offset dropdownOffset = Offset(0.0, -8.0);
|
||||
|
||||
static const EdgeInsetsGeometry padding = EdgeInsets.only(
|
||||
left: 12,
|
||||
right: 10
|
||||
);
|
||||
|
||||
static const BorderRadius borderRadius = BorderRadius.all(Radius.circular(10));
|
||||
|
||||
static const Radius scrollbarRadius = Radius.circular(40);
|
||||
|
||||
static const BoxDecoration dropdownDecoration = BoxDecoration(
|
||||
borderRadius: borderRadius,
|
||||
color: Colors.white,
|
||||
);
|
||||
|
||||
static const TextStyle selectedValueTexStyle = TextStyle(
|
||||
fontSize: 16,
|
||||
fontWeight: FontWeight.w400,
|
||||
color: Colors.black,
|
||||
);
|
||||
|
||||
static const MenuItemStyleData menuItemStyleData = MenuItemStyleData(
|
||||
height: height,
|
||||
padding: EdgeInsets.symmetric(horizontal: 12),
|
||||
);
|
||||
}
|
||||
+24
@@ -0,0 +1,24 @@
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
class DateSelectionFieldStyles {
|
||||
static const double height = 44.0;
|
||||
static const double titleWidth = 112.0;
|
||||
static const double titleSpace = 12.0;
|
||||
static const double titleSpaceMobile = 8.0;
|
||||
static const double icCalendarSize = 24.0;
|
||||
static const double icCalenderSpace = 10.0;
|
||||
static const double borderWidthMobile = 0.5;
|
||||
static const double radius = 12.0;
|
||||
|
||||
static const EdgeInsetsGeometry padding = EdgeInsets.symmetric(
|
||||
vertical: 8.0
|
||||
);
|
||||
static const EdgeInsetsGeometry paddingMobile = EdgeInsets.symmetric(
|
||||
vertical: 7.0
|
||||
);
|
||||
static const EdgeInsetsGeometry inputFieldMobilePadding = EdgeInsets.symmetric(
|
||||
horizontal: 12.0
|
||||
);
|
||||
|
||||
static const BorderRadius borderRadius = BorderRadius.all(Radius.circular(12));
|
||||
}
|
||||
Reference in New Issue
Block a user