The argument type 'Image' can't be assigned to the parameter type 'ImageProvider<Object>'

imdsk

i was try the container the i put image.net work in child it's work but i need to custom border of image what should i fixed it.

Expanded(
                                            child: Align(
                                              alignment: Alignment.center,
                                              child: Container(
                                                height: 45, //height, //155,
                                                width: 45, //width, //155,
                                                decoration: BoxDecoration(
                                                  color:
                                                      const Color(0xff7c94b6),
                                                  image: DecorationImage(
                                                    image: Image.network(state
                                                        .offerConfirm
                                                        .ownImage[index]),
                                                    fit: BoxFit.cover,
                                                  ),
                                                  borderRadius:
                                                      BorderRadius.circular(12),
                                                ),
                                              ),
                                            ),
                                            flex: 3,
                                          ),

enter image description here

Alan Bosco

Change image decoration to :

decoration: BoxDecoration(
      image: DecorationImage(image: NetworkImage("urlImage"),
      fit: BoxFit.cover)
    ),

Full code :

Expanded(
                                            child: Align(
                                              alignment: Alignment.center,
                                              child: Container(
                                                height: 45, //height, //155,
                                                width: 45, //width, //155,
                                                decoration: BoxDecoration(
                                                  color:
                                                      const Color(0xff7c94b6),
                                                  image: DecorationImage(
                                                    image: NetworkImage(state
                                                        .offerConfirm
                                                        .ownImage[index])
                                                    fit: BoxFit.cover,
                                                  ),
                                                  borderRadius:
                                                      BorderRadius.circular(12),
                                                ),
                                              ),
                                            ),
                                            flex: 3,
                                          ),

Эта статья взята из Интернета, укажите источник при перепечатке.

Если есть какие-либо нарушения, пожалуйста, свяжитесь с[email protected] Удалить.

Отредактировано в
0

я говорю два предложения

0обзор
Войти в системуУчаствуйте в комментариях

Статьи по теме

The argument type 'Object?' can't be assigned to the parameter type 'List'

The argument type 'AnimationController?' can't be assigned to the parameter type 'Animation<double>'

The argument type 'Color' can't be assigned to the parameter type 'int'

The Argument type 'Context' can't be assigned to the parameter type 'BuildContext' - Flutter

The argument type 'Future<Widget?>' can't be assigned to the parameter type 'Widget?'

The argument type 'Obx' can't be assigned to the parameter type 'PreferredSizeWidget?

Flutter - The argument type 'Null' can't be assigned to the parameter type 'Function'

Error: The argument type 'String?' can't be assigned to the parameter type 'String' because 'String?' is nullable and 'String' isn't

error: The argument type 'Null' can't be assigned to the parameter type 'Map<String, dynamic>'

Flutter SQLlite the argument type 'Future<String>' can't be assigned to the parameter type 'String' error

flutter Error: The argument type 'ContentType' can't be assigned to the parameter type 'String'

error: The argument type 'String Function(String)' can't be assigned to the parameter type 'String? Function(String?)?'

In Flutter The argument type 'List<InkWell>?' can't be assigned to the parameter type 'List<Widget>'

The argument type 'Null' can't be assigned to the parameter type 'String'. Flutter Issue

The argument type 'List<Plants>?' can't be assigned to the parameter type 'List<Plants>'

The argument type 'Function' can't be assigned to the parameter type 'void Function(String?)?' what to do here :)

how to fix error "The argument type 'dynamic Function()' can't be assigned to the parameter type 'class name' " in Flutter

lib/answer.dart:16:20: Error: The argument type 'Function' can't be assigned to the parameter type 'void Function()?'

not able to make ontap function due to The argument type 'Function' can't be assigned to the parameter type 'void Function()' what to do?

'T' is not a valid template type argument for parameter 'T'

Dart: A value of type 'int' can't be assigned to a variable of type 'int'

A value of type 'Future<String>' can't be assigned to a variable of type 'String'

The element type 'List<Card>' can't be assigned to the list type 'Widget'

The element type 'Question' can't be assigned to the list type 'Widget'

A value of type 'Future<List>' can't be assigned to a variable of type 'List'

Why can't a parameter of function type take an argument whose parameters implement the original parameter's interface?

Typescript: function with argument of enum type assigned to callback with argument type of string

Unused type parameter on closure argument

Argument of type 'IResizeHandleSettingsDetail' is not assignable to parameter of type 'IResizeHandleSettings'

TOP список

  1. 1

    Распределение Рэлея Curve_fit на Python

  2. 2

    Как не использовать HttpClient с ЛЮБЫМ сертификата SSL, независимо от того, как «плохо» это

  3. 3

    Modbus Python Schneider PM5300

  4. 4

    (fields.E300) Поле определяет связь с моделью, которая либо не установлена, либо является абстрактной.

  5. 5

    Elasticsearch - Нечеткий поиск не дает предложения

  6. 6

    TypeError: store.getState não é uma função. (Em 'store.getState ()', 'store.getState' é indefinido, como posso resolver esse problema?

  7. 7

    Перебирайте несколько столбцов в фрейме данных Panda и находите уникальные значения подсчета

  8. 8

    Merging legends in plotly subplot

  9. 9

    SQL Вычтите две строки друг от друга в одном столбце, чтобы получить результат

  10. 10

    Автозаполнение с Java, Redis, Elastic Search, Монго

  11. 11

    Vue js CLI 2 импортирует и использует плагин javascript

  12. 12

    Метод ошибки Illuminate \\ Database \\ Eloquent \\ Collection :: save не существует. в Laravel

  13. 13

    Single legend for Plotly subplot for line plots created from two data frames in R

  14. 14

    В чем разница между CRC-16 / CCITT-FALSE и CRC-16 / X-25?

  15. 15

    Ленивое объединение FPU в Cortex-M4F

  16. 16

    Как очистить или очистить StringBuilder?

  17. 17

    PyQt5 не работает как «подходящий UI Toolkit» для Mayavi с Python 3.6.

  18. 18

    В типе Observable <unknown> отсутствуют следующие свойства из типа Promise <any>.

  19. 19

    Vue 2 / Vue CLI 3: создание асинхронных однофайловых компонентов

  20. 20

    Текущая ветка не настроена для извлечения В конфигурации не найдено значение для ключа branch.master.merge

  21. 21

    Проблемы со сборкой Python Image Registration Toolkit

популярныйтег

файл