Как добавить мои товары в правую часть моего изображения? [closed]

Привет, ребята, есть кто-то, кто может мне помочь.Я занят кодированием веб-приложения Flutter и столкнулся с небольшой проблемой. Проблема, с которой я столкнулся, связана с изображением и добавлением продуктов в построитель gridview. Хорошо, изображение в порядке, НО мои продукты тесны внутри изображения, как я могу удалить их из изображения рядом с изображением? в документах флаттера говорится, что используется строка и 2 дочерних элемента со столбцами, которые я пробовал, но безуспешно, пожалуйста, кто-нибудь может мне помочь, если вы хотите, чтобы я отправил код просто дайте мне знать !!!!перейти изнутри изображения в открытое пространство рядом с изображением

Я попытался добавить его в строку и столбец, но это не сработает.

import 'package:flutter/material.dart';
import 'package:flutter/cupertino.dart';
import 'package:web_windmillsa_tech/tools/store.dart';
import 'favorites.dart';
import 'messages.dart';
import 'cart.dart';
import 'notifications.dart';
import 'history.dart';
import 'profile.dart';
import 'delivery.dart';
import 'aboutUs.dart';
import 'loginlogout.dart';

class HomePage extends StatefulWidget {
  @override
  _HomePageState createState() => _HomePageState();
}

class _HomePageState extends State<HomePage> {
  BuildContext context;

  @override
  Widget build(BuildContext context) {
    this.context = context;
    return new Scaffold(
      appBar: new AppBar(
        title: new Text('Welcome to WindMill South-Africa Online Tech Store',
            style: new TextStyle(
                color: Colors.yellowAccent,
                fontWeight: FontWeight.bold,
                fontSize: 25.0)),
        centerTitle: true,
        actions: <Widget>[
          new IconButton(
              icon: new Icon(
                Icons.favorite,
                color: Colors.white,
              ),
              onPressed: () {
                Navigator.of(context).push(new CupertinoPageRoute(
                    builder: (BuildContext context) =>
                        new WindMillFavorities()));
              }),
          new Stack(
            children: <Widget>[
              new IconButton(
                  icon: new Icon(
                    Icons.chat,
                    color: Colors.white,
                  ),
                  onPressed: () {
                    Navigator.of(context).push(new CupertinoPageRoute(
                        builder: (BuildContext context) =>
                            new WindMillMassages()));
                  }),
              new CircleAvatar(
                radius: 10.0,
                backgroundColor: Colors.red,
                child: new Text(
                  '0',
                  style: new TextStyle(color: Colors.white, fontSize: 12.0),
                ),
              ),
            ],
          ),
        ],
      ),
      body: new Container(
        child: new Container(
          width: 500,
          height: 1000,
          decoration: BoxDecoration(
            image: DecorationImage(
              image: AssetImage('assets/images/windmill.jpg'),
              fit: BoxFit.fill,
            ),
          ),
         

> From here im not sure what to do

 child: new Row(
            children: <Widget>[
              new Container(
                child: new Flexible(
                    child: new GridView.builder(
                  gridDelegate: new SliverGridDelegateWithFixedCrossAxisCount(
                      crossAxisCount: 3),
                  itemCount: storeItems.length,
                  itemBuilder: (BuildContext context, int index) {
                    return new Card(
                      child: new Stack(
                        alignment: FractionalOffset.bottomCenter,
                        children: <Widget>[
                          new Row(
                            mainAxisAlignment: MainAxisAlignment.spaceBetween,
                            children: <Widget>[
                              new Text(storeItems[index].itemName),
                              new Text('R${storeItems[index].itemPrice}'),

> not sure what to do 

                            ],
                          ),
                        ],
                      ),
                    );
                  },
                )),
              ),
            ],
          ),
        ),
      ),
      floatingActionButton: new Stack(
        alignment: Alignment.topLeft,
        children: <Widget>[
          new FloatingActionButton(
              onPressed: () {
                Navigator.of(context).push(new CupertinoPageRoute(
                    builder: (BuildContext context) => new WindMillCart()));
              },
              child: new Icon(Icons.shopping_cart)),
          new CircleAvatar(
            radius: 10.0,
            backgroundColor: Colors.red,
            child: new Text(
              '0',
              style: new TextStyle(color: Colors.white, fontSize: 12.0),
            ),
          ),
        ],
      ),
      drawer: new Drawer(
        child: new Column(
          children: <Widget>[
            new UserAccountsDrawerHeader(
              accountName: new Text('Corneluis J Heunis'),
              accountEmail: new Text('corneluis@windmillsa.com'),
              currentAccountPicture: new CircleAvatar(
                backgroundColor: Colors.white,
                child: new Icon(Icons.person),
              ),
            ),
            new ListTile(
              leading: new CircleAvatar(
                child: new Icon(
                  Icons.notifications,
                  color: Colors.white,
                ),
              ),
              title: new Text('Order Notifications'),
              onTap: () {
                Navigator.of(context).push(new CupertinoPageRoute(
                    builder: (BuildContext context) =>
                        new WindMillNotifications()));
              },
            ),
            new ListTile(
              leading: new CircleAvatar(
                child: new Icon(
                  Icons.history,
                  color: Colors.white,
                ),
              ),
              title: new Text('Order History'),
              onTap: () {
                Navigator.of(context).push(new CupertinoPageRoute(
                    builder: (BuildContext context) => new WindMillHistory()));
              },
            ),
            new Divider(),
            new ListTile(
              leading: new CircleAvatar(
                child: new Icon(
                  Icons.person,
                  color: Colors.white,
                ),
              ),
              title: new Text('Profile Settings'),
              onTap: () {
                Navigator.of(context).push(new CupertinoPageRoute(
                    builder: (BuildContext context) => new WindMillProfile()));
              },
            ),
            new ListTile(
              leading: new CircleAvatar(
                child: new Icon(
                  Icons.home,
                  color: Colors.white,
                ),
              ),
              title: new Text('Delivery Address'),
              onTap: () {
                Navigator.of(context).push(new CupertinoPageRoute(
                    builder: (BuildContext context) => new WindMillDelivery()));
              },
            ),
            new Divider(),
            new ListTile(
              trailing: new CircleAvatar(
                child: new Icon(
                  Icons.help,
                  color: Colors.white,
                ),
              ),
              title: new Text('About Us'),
              onTap: () {
                Navigator.of(context).push(new CupertinoPageRoute(
                    builder: (BuildContext context) => new WindMillAbout()));
              },
            ),
            new ListTile(
              trailing: new CircleAvatar(
                child: new Icon(
                  Icons.exit_to_app,
                  color: Colors.white,
                ),
              ),
              title: new Text('Login'),
              onTap: () {
                Navigator.of(context).push(new CupertinoPageRoute(
                    builder: (BuildContext context) => new WindMillLogin()));
              },
            ),
          ],
        ),
      ),
    );
  }
}


Хорошо, если ты посмотришь на строку

0

Добавить комментарий

Ваш адрес email не будет опубликован. Обязательные поля помечены *