Bejárás: pont színének megadása. Projekt export geopackage formátumban
This commit is contained in:
@@ -4,6 +4,8 @@ import 'package:terepi_seged/pages/map_survey/presentations/controllers/map_surv
|
||||
|
||||
class ColorRow extends StatelessWidget {
|
||||
final MapSurveyController ctrl;
|
||||
final double circleSize;
|
||||
|
||||
static const _palette = [
|
||||
Color(0xFF6C63FF),
|
||||
Color(0xFFE74C3C),
|
||||
@@ -13,7 +15,7 @@ class ColorRow extends StatelessWidget {
|
||||
Color(0xFF3498DB),
|
||||
Color(0xFF8BC34A),
|
||||
];
|
||||
const ColorRow({required this.ctrl});
|
||||
const ColorRow({required this.ctrl, this.circleSize = 40});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
@@ -31,8 +33,8 @@ class ColorRow extends StatelessWidget {
|
||||
onTap: () => ctrl.activeEditColor.value = color,
|
||||
child: AnimatedContainer(
|
||||
duration: const Duration(milliseconds: 150),
|
||||
width: 40,
|
||||
height: 40,
|
||||
width: circleSize,
|
||||
height: circleSize,
|
||||
decoration: BoxDecoration(
|
||||
color: color,
|
||||
shape: BoxShape.circle,
|
||||
|
||||
Reference in New Issue
Block a user