ecommerce_kit 0.0.2

SDKflutter
Platformandroidioswindowslinuxmacosweb

This package is a collection of pre-built eCommerce components. With this package, developers can save time and effort when building eCommerce applications in Flutter.

Ecommerce Kit pub package

My Flutter package is a collection of pre-built eCommerce components, including product listings, shopping carts, checkout processes, product details, payment gateway integrations, order history, and wishlists. With this package, developers can save time and effort when building eCommerce applications using Flutter.

Usage

To use this package, add ecommerce_kit as a dependency in your pubspec.yaml file.

dependencies:
  ecommerce_kit: ^0.0.1
// Import package
import 'package:ecommerce_kit/ecommerce_kit.dart';

Example

import 'package:flutter/material.dart';
import 'package:ecommerce_kit/ecommerce_kit.dart';

class EcommerceTest extends StatefulWidget {
  const EcommerceTest({super.key});

  @override
  State<EcommerceTest> createState() => _EcommerceTestState();
}

class _EcommerceTestState extends State<EcommerceTest> {
  int quantity = 1;

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: const Text('Ecommerce Test'),
      ),
      body: SingleChildScrollView(
        child: Column(
          children: [
            10.heightBox,
            EcommerceElement.sliderAssets(enlargeCenterPage: true),
            20.heightBox,
            EcommerceElement.slideShow(),
            10.heightBox,
            EcommerceElement.menuItem(),
            20.heightBox,
            EcommerceElement.increaseDecreaseQuantity(
              productQuantity: quantity,
              increaseQuantity: () {
                setState(() {
                  quantity++;
                });
              },
              decreaseQuantity: () {
                setState(() {
                  quantity--;
                });
              },
            ),
            EcommerceElement.heading(
              title: 'Featured Products',
              backgroundColor: Colors.grey[200],
            ),
            Container(
              color: Colors.grey[200],
              padding: const EdgeInsets.all(10),
              // margin: const EdgeInsets.all(10),
              child: SingleChildScrollView(
                physics: const BouncingScrollPhysics(),
                scrollDirection: Axis.horizontal,
                child: Row(
                    children: List.generate(
                  3,
                  (index) => EcommerceElement.productCardAsset(
                    onTap: () {},
                  ),
                )),
              ),
            ),
            20.heightBox,
            SingleChildScrollView(
              scrollDirection: Axis.horizontal,
              child: Row(
                children: List.generate(
                  2,
                  (index) => Column(
                    children: [
                      EcommerceElement.featuredButtonAsset(
                        imageBoxFit: BoxFit.cover,
                        onTap: () => print('Featured Button $index tapped'),
                      ),
                      10.heightBox,
                      EcommerceElement.featuredButtonAsset(
                        imageBoxFit: BoxFit.cover,
                        onTap: () => print('Featured Button $index tapped'),
                      ),
                    ],
                  ),
                ).toList(),
              ),
            ),
            EcommerceElement.rating(),
            20.heightBox,
            EcommerceElement.filterCard(),
            SingleChildScrollView(
              scrollDirection: Axis.horizontal,
              child: Row(
                children: [
                  EcommerceElement.productCard(),
                  EcommerceElement.productCard(),
                  EcommerceElement.productCard(),
                ],
              ),
            ),
            SingleChildScrollView(
              child: Container(
                padding: const EdgeInsets.all(12),
                child: GridView.builder(
                    physics: const NeverScrollableScrollPhysics(),
                    shrinkWrap: true,
                    itemCount: 9,
                    gridDelegate:
                        const SliverGridDelegateWithFixedCrossAxisCount(
                      crossAxisCount: 2,
                      mainAxisSpacing: 8,
                      crossAxisSpacing: 8,
                      mainAxisExtent: 200,
                    ),
                    itemBuilder: (context, index) {
                      return EcommerceElement.categoryCardAsset(
                        onTap: () => print('Category Card $index tapped'),
                      ).box.make();
                    }),
              ),
            ),
          ],
        ),
      ),
    );
  }
}

Elements

Slider

EcommerceElement.sliderAssets(enlargeCenterPage: true),

Slide Show

EcommerceElement.slideShow(), //etc...
ElemetsDescriptionParameters
.splashScreenAsset()Splash ScreenappImage, appWidth, appName, appNameColor, appNameFontFamily, appNameFontSize, appversoin, appVersionCOlor, appVersionFontFamily, appVersionFontSize, credits, creditsColor, creditsFontFamily, creditsFontSize
.splashScreenNetwork()Splash ScreenappImage, appWidth, appName, appNameColor, appNameFontFamily, appNameFontSize, appversion, appVersionColor, appVersionFontFamily, appVersionFontSize, credits, creditsColor, creditsFontFamily, creditsFontSize
.sliderAssets()SliderslidersList, aspectRatio, height, enlargeCenterPage, autoPlay, onTap, imageFit
.slider()SliderslidersList, aspectRatio, height, enlargeCenterPage, autoPlay, onTab
.productCard()Product Cardimage, title, titleColor, titleFontFamily, titleFontSize, price, priceColor, priceFontFamily, priceFontSize, description, descriptionColor, descriptionFontFamily, descriptionFontSize, backgroundColor, width, imageBoxFit, onTap
.productCardAssets()Product Card with Asset Imageimage, title, titleColor, titleFontFamily, titleFontSize, titleFontWeight, price, priceColor, priceFontFamily, priceFontSize, priceFontWeight, description, descriptionColor, descriptionFontFamily, descriptionFontSize, backgroundColor, width, imageBoxFit, onTap
.productCardAsset()Product Card with Asset Imageimage, title, titleColor, titleFontFamily, titleFontSize, titleFontWeight, price, priceColor, priceFontFamily, priceFontSize, priceFontWeight, description, descriptionFontFamily, descriptionFontSize, descriptionColor, backgroundColor, width, imageBoxFit, onTap
.categoryCardAsset()Category Card with Asset Imageimage, title, titleColor, titleFontFamily, titleFontSize, desctiption, descriptionColor, descriptionFontFamily, descriptionFontSize, backgroundColor, width, height, imageBoxFit, onTap
.categoryCard()Category Card with Network Imageimage, title, titleColor, titleFontFamily, titleFontSize, desctiption, descriptionColor, descriptionFontFamily, descriptionFontSize, backgroundColor, width, height, imageBoxFit, onTap
.circularColorBox()Circular Color Boxcolor, size, onTap, selectedColor
.sizeSelector()Size Selector for productssizes[], onTap, backgroundColor, selected, height, width
.cartItem()For Products Item in the Cartimage, title, titleColor, titleFontFamily, titleFontSize, subtitle, subtitleColor, subtitleFontFamily, subtitleFontSize, price, priceColor, priceFontFamily, priceFontSize, onTap, height, width, imageBoxFit, prductQuantity, backgroundColor, increaseQuantity, decreaseQuantity, removeItem, showRemoveButton, productQuantityColor
.profileImage()Profile Imageimage, onTap, height, width, imageBoxFit
.profileImageCircular()Profile Image Circularimage, onTap, height, width, imageBoxFit
increaseDecreaseQuantityIncrease Decrease QuantityproductQuantity, productQuantityColor, bacgroundColor, increaseQuantity, decreaseQuantity
.inputField()Input Fieldtitle, titleColor, titleFontFamily, hint, controller, keyboardType, isPassword, fillColor, onChanged, onTap, onSubmitted, fontFamily, fontSize, fontCOlor, borderCOlor, maxLines, obscureText, validator
.buttonButtononPress, backgroundColor, textColor, title, fontFamily
.loginScreen()Login Screenlogo, logoHeight, logoWidth, logoBoxFit, logoBackgroundColor, emailController, passwordController, onTapLogin, onTapSignup
.signUpScreen()Sign Up Screenlogo, logoHeight, logoWidth, logoBoxFit, logoBackgroundColor, nameController, emailController, passwordController,confirmPasswordController, onTapLogin, onTapSignup
.removeProductAlertBoxOne()Remove Product Alert BoxonTapYes, onTapNo, productName
.removeProductAlertBoxTwo()Remove Product Alert BoxonTapYes, onTapNo, productName
.deleteAccount()Delete AccountonTapYes, onTapNo
.menuItem()Menu ItemonTap, leading, subtitle, traling, title, backgroundColor
.filterCard()Filter CardonTap, title, deleteIcon, onDelete, deleteIconColor, backgroundColor, labelStyle, avatar, elevation
.addToCartButton()Add To Cart ButtononTap, title, backgroundColor, textColor
.heading()Headingtitle, titleColor, titleFontFamily, titleFontSize, titleFontWeight, subtitle, subtitleColor, subtitleFontFamily, subtitleFontSize, subtitleFontWeight, backgroundColor, onTap
.featuredButtonAsset()Featured Button with Asset Imageimage, title, titleColor, titleFontFamily, subtitle, subtitleColor, subtitleFontFamily, backgroundColor, onTap, imageBoxFit, featuredButtonWidth, imageWidth
.slideShow()Slide Showimages, height, aspectRatio, autoPlay, imageBoxFit, imageWidth, imageHeight, onTap
.rating()RatingonRatingUpdate, normalCOlor, selectionColor, count, size, stepInt, isSelectable

Github Repository

Ecommerce Kit

Author

Shubham Kumar - Github

Also Checkout

PackageDescription
Form MakerCreate forms with ease
Dad JokesGet random dad jokes
Timestamp to StringConvert timestamp to string
Drop Down Menu ItemsDrop Down Menu Items
Single Text FieldSingle Text Field

Special Thanks

Flutter

Velocity X