TF-1545: Set color table is center

(cherry picked from commit 0b2a2b2a8d9d61d7b6bff7d9027382bf46993d27)
This commit is contained in:
HuyNguyen
2023-03-31 13:14:32 +07:00
committed by Dat Vu
parent 76b800c6e2
commit 629093ee13
9 changed files with 27 additions and 1594 deletions
@@ -1,9 +1,7 @@
import 'package:core/presentation/extensions/color_extension.dart';
import 'package:core/presentation/views/button/icon_button_web.dart';
import 'package:core/presentation/views/pick_color/color_code_field.dart';
import 'package:core/presentation/views/pick_color/color_picker_action_buttons.dart';
import 'package:core/presentation/views/pick_color/color_picker_copy_past_behaivor.dart';
import 'package:flex_color_picker/flex_color_picker.dart';
import 'package:flutter/material.dart';
import 'package:pointer_interceptor/pointer_interceptor.dart';
@@ -76,9 +74,11 @@ class ColorPickerDialogBuilder {
borderRadius: BorderRadius.all(Radius.circular(4)),
color: Colors.white
),
child: Wrap(children: AppColor.listColorsPicker
.map((color) => _itemColorWidget(context, color))
.toList(),
child: Center(
child: Wrap(children: AppColor.listColorsPicker
.map((color) => _itemColorWidget(context, color))
.toList(),
),
),
),
Padding(