#flutter-web
#трепещущая паутина
Вопрос:
итак, я пытаюсь придать моей кнопке пользовательскую тень, сначала она работает хорошо, но затем тень отображается неправильно
Вот мой код :
Stack(
alignment: AlignmentDirectional.center,
children: [
Row(
children: [
Expanded(
child: Image.asset(
'assets/images/onboard1.png',
fit: BoxFit.cover,
),
),
],
),
Padding(
padding:
const EdgeInsets.symmetric(horizontal: 111),
child: Row(
children: [
Expanded(
child: Column(
crossAxisAlignment:
CrossAxisAlignment.start,
children: [
Text(
'Solusi untuk eskalasinproblem dannpermintaan layanan.',
style: TextStyle(
fontFamily: 'Nunito',
fontSize: 48,
color: HexColor('#012970'),
fontWeight: FontWeight.bold,
),
),
const SizedBox(height: 40),
Container(
width: 274,
height: 35,
decoration: const BoxDecoration(
boxShadow: [
BoxShadow(
color: Color.fromRGBO(
65, 84, 241, 0.5),
blurRadius: 43,
),
],
),
child: ElevatedButton(
style: ButtonStyle(
backgroundColor:
MaterialStateProperty.all(
HexColor('#4154F1')),
),
onPressed: () {
Get.toNamed('/kebijakan',
arguments: true);
},
child: Row(
mainAxisAlignment:
MainAxisAlignment.center,
children: const [
Text(
'Daftar Sekarang',
style: TextStyle(
fontFamily: 'Montserrat',
fontSize: 18,
fontWeight:
FontWeight.w400,
color: Colors.white,
),
),
SizedBox(width: 5),
Icon(Icons.arrow_forward),
],
),
),
),
],
),
),
Image.asset('assets/images/Cahyo_MFD.png'),
],
),
),
],
),
Вот на что сначала смотрит кнопка
И тогда это выглядит так
оба используют blurRadius: 43
я пытаюсь реализовать обходной путь из этого здесь, но результат все тот же
есть ли другое решение этой проблемы?