|
|
|
|
@ -1,5 +1,7 @@
|
|
|
|
|
import 'package:diplomaticquarterapp/core/viewModels/project_view_model.dart';
|
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
|
import 'package:hexcolor/hexcolor.dart';
|
|
|
|
|
import 'package:provider/provider.dart';
|
|
|
|
|
|
|
|
|
|
/// SecondaryButton widget
|
|
|
|
|
/// [label] button label
|
|
|
|
|
@ -127,6 +129,7 @@ class _SecondaryButtonState extends State<SecondaryButton>
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
|
ProjectViewModel projectViewModel = Provider.of(context);
|
|
|
|
|
return IgnorePointer(
|
|
|
|
|
ignoring: widget.loading,
|
|
|
|
|
child: GestureDetector(
|
|
|
|
|
@ -232,7 +235,7 @@ class _SecondaryButtonState extends State<SecondaryButton>
|
|
|
|
|
color: widget.textColor,
|
|
|
|
|
fontSize: 17.0,
|
|
|
|
|
fontWeight: FontWeight.w800,
|
|
|
|
|
fontFamily: "WorkSans"),
|
|
|
|
|
fontFamily: projectViewModel.isArabic ? 'Cairo' : 'WorkSans'),
|
|
|
|
|
),
|
|
|
|
|
)
|
|
|
|
|
],
|
|
|
|
|
|