Обновлен проект. Добавлена БД
This commit is contained in:
@@ -7,6 +7,8 @@ class PrimaryButton extends StatefulWidget {
|
||||
const PrimaryButton({
|
||||
required this.child,
|
||||
required this.onTap,
|
||||
this.color = AppColors.primary,
|
||||
|
||||
super.key,
|
||||
this.height = 52,
|
||||
this.width = double.infinity,
|
||||
@@ -16,6 +18,7 @@ class PrimaryButton extends StatefulWidget {
|
||||
final double height;
|
||||
final double width;
|
||||
final Function() onTap;
|
||||
final Color color;
|
||||
|
||||
@override
|
||||
State<PrimaryButton> createState() => _PrimaryButtonState();
|
||||
@@ -38,7 +41,7 @@ class _PrimaryButtonState extends State<PrimaryButton> {
|
||||
child: DecoratedBox(
|
||||
decoration: BoxDecoration(
|
||||
borderRadius: const BorderRadius.all(Radius.circular(16)).r,
|
||||
color: AppColors.primary,
|
||||
color: widget.color,
|
||||
),
|
||||
child: Center(
|
||||
child:
|
||||
|
||||
Reference in New Issue
Block a user