items.fold(0, (total, current) => " /> items.fold(0, (total, current) => " /> items.fold(0, (total, current) => "/>

GETX 2.13.1 COMMON CLASS

Overview

ecommerce

export PATH="$PATH:/Users/mac/Documents/flutter/bin"

shopping use total price count

num get totalPrice => items.fold(0, (total, current) => total + current.price);

Image select camera

final _picker = ImagePicker(); File? image; PickedFile? image = await _picker.getImage( source: ImageSource.camera, maxHeight: 675, maxWidth: 960, ); File selectedImage = File(image!.path);

setState(() { this.image = selectedImage; }); }

STRIPE PAYMENT GETWAY

static String getStripePrice(double price) { final returnedPrice = (price * 100).toInt(); return returnedPrice.toString(); }

Container( height: double.infinity, child: Align( widthFactor: 0.7, child: AspectRatio( aspectRatio: 1 / 1, child: ProfileAvatar(colorBg: color1, currentSociety: currentSociety, colorLight: color2))))

FractionallySizedBox( widthFactor: 1, child: Card( elevation: 0, margin: margin, clipBehavior: Clip.antiAlias, color: Colors.transparent, shape: RoundedRectangleBorder( borderRadius: BorderRadius.circular(radius) ), child: Container( height: height, color: color )))

List<> dataList = List<>.empty(growable: true);

const EdgeInsets.symmetric(horizontal: 30),

networkImage( {String image, Widget loaderImage, double height, double width, BoxFit boxFit = BoxFit.fitHeight}) => CachedNetworkImage( imageUrl: image, placeholder: (context, url) => loaderBeforeImage(width: width, height: height), //largeImageShimmer(context), errorWidget: (context, url, error) => loaderBeforeImage(width: width, height: height), height: height, width: width, fit: boxFit, );

Image loaderBeforeImage( {double height = 135, double width = 162.5, String image = 'assets/images/no_image.jpg', BoxFit boxFit = BoxFit.contain}) => Image.asset( image, height: height, width: width, fit: boxFit, );

//SEARCH
Container(
        height: 140.h,
        child: TextField(
          textAlignVertical: TextAlignVertical.center,
          textAlign: TextAlign.left,
          decoration: InputDecoration(
              hintText: '输入商品名或者宝贝标题搜索',
              border: OutlineInputBorder(borderRadius: BorderRadius.circular(20.0), borderSide: BorderSide.none),
              alignLabelWithHint: true,
              filled: true,
              fillColor: Colors.white,
              suffixIcon: Icon(
                Icons.search,
                color: Colors.grey,
              ),
              hintStyle: TextStyle(height: 1.5),
              contentPadding: EdgeInsets.only(top: 30.h, left: 40.w)),
          style: TextStyle(height: 1, color: Colors.black),
        ),
      ),


       Container(
                              width: ScreenUtil().setWidth(900),
                              height: ScreenUtil().setHeight(120),
                              child: Stack(
                                children: <Widget>[
                                  Container(
                                    padding: EdgeInsets.only(left: 10),
                                    decoration: BoxDecoration(
                                        color: Color.fromRGBO(255, 238, 230, 1.0),
                                        borderRadius: BorderRadius.only(
                                            topRight: Radius.circular(100.0),
                                            bottomRight: Radius.circular(100.0))),
                                    alignment: Alignment.centerLeft,
                                    child: RichText(
                                      text: TextSpan(children: [
                                        TextSpan(
                                          text: "已售",
                                          style: TextStyle(
                                              fontSize: ScreenUtil().setSp(45),
                                              color: Color.fromRGBO(137, 60, 17, 1.0)),
                                        ),
                                        TextSpan(
                                          text: " ${goodsItem.monthSales} ",
                                          style: TextStyle(
                                              fontSize: ScreenUtil().setSp(65),
                                              color: Color.fromRGBO(255, 91, 0, 1.0)),
                                        ),
                                        TextSpan(
                                          text: "件",
                                          style: TextStyle(
                                              fontSize: ScreenUtil().setSp(45),
                                              color: Color.fromRGBO(137, 60, 17, 1.0)),
                                        )
                                      ]),
                                    ),
                                  ),
                                  Positioned(
                                    right: -3.3,
                                    top: 0,
                                    child: Image.asset(
                                      "assets/images/lijigoumai.png",
                                      width: ScreenUtil().setWidth(350),
                                      height: ScreenUtil().setHeight(140),
                                      fit: BoxFit.cover,
                                    ),
                                  ),
                                  Positioned(
                                      right: 0,
                                      top: 0,
                                      child: Container(
                                        alignment: Alignment.center,
                                        width: ScreenUtil().setWidth(280),
                                        height: ScreenUtil().setHeight(120),
                                        child: Text(
                                          "立即购买",
                                          style: TextStyle(
                                              fontSize: ScreenUtil().setSp(40),
                                              color: Colors.white),
                                        ),
                                      )
                                  )
                                ],
                              ),
                            )

{'Content-Type': 'application/json'} body: jsonEncode(data),

You might also like...

Flutter-GetX-Toturials - Getx full tutorials for flutter

Flutter-GetX-Toturials - Getx full tutorials for flutter

getx_full_tutorials A new Flutter getx tutorial. This Project Contains: Snackbar

Dec 1, 2022

Flutter getx template - A Flutter Template using GetX package for State management, routing and Dependency Injection

Flutter getx template - A Flutter Template using GetX package for State management, routing and Dependency Injection

Flutter GetX Template (GetX, Dio, MVVM) This Flutter Template using GetX package

Aug 27, 2022

Flutter GetX Template (GetX, Dio, MVVM)

Flutter GetX Template (GetX, Dio, MVVM)

Flutter GetX Template (GetX, Dio, MVVM) This Flutter Template using GetX package for State management, routing and Dependency Injection (bindings). We

Dec 18, 2022

Cart bag provide common E-platform to small general store or super market to sell there product.

Cart bag provide common E-platform to small general store or super market to sell there product.

Cart-Bag Cart bag provide common E-platform to small general store or super market to sell there product. some screens of our app :- Developer Gautam

May 9, 2021

A showcase of the most common Flutter animation APIs.

A showcase of the most common Flutter animation APIs.

Flutter Animations Gallery This project is a showcase of the most common Flutter animation APIs. Preview Also available as a Flutter web demo. Setting

Dec 10, 2022

:bug: Flutter debug helper widget with common and custom actions

:bug: Flutter debug helper widget with common and custom actions

Debug Friend Flutter debug helper widget with common and custom actions This helps you reduce the development and testing time of new features Show so

Dec 7, 2022

Flutter debug helper widget with common and custom actions

Flutter debug helper widget with common and custom actions

Flutter debug helper widget with common and custom actions

Dec 7, 2022

An example showing how to handle common scrolling gesture conflicts in Flutter.

An example showing how to handle common scrolling gesture conflicts in Flutter.

scroll_master An example showing how to handle common scrolling gesture conflicts in Flutter.

Nov 11, 2022

A flutter package for displaying common picker dialogs.

A flutter package for displaying common picker dialogs.

Flutter Material Pickers A flutter package containing commonly used material design picker dialogs. Some are new, some wrap existing or built in picke

Jan 2, 2023

Flutter guide + SDK. Check Community repository for common information.

freeRASP for Flutter freeRASP for Flutter is a part of security SDK for the app shielding and security monitoring. Learn more about provided features

Dec 26, 2022

Target the specific design of Material for Android and Cupertino for iOS widgets through a common set of Platform aware widgets

Target the specific design of Material for Android and Cupertino for iOS widgets through a common set of Platform aware widgets

Flutter Platform Widgets This project is an attempt to see if it is possible to create widgets that are platform aware. Currently in order to render t

Jan 4, 2023

Flutter animation tutorials, such common animation, flare animation.

Flutter animation tutorials, such common animation, flare animation.

❤️ Star ❤️ the repo to support the project or 😄 Follow Me.Thanks! Facebook Page Facebook Group QQ Group Developer Flutter Open Flutter Open 963828159

Sep 3, 2022

Target the specific design of Material for Android and Cupertino for iOS widgets through a common set of Platform aware widgets

Target the specific design of Material for Android and Cupertino for iOS widgets through a common set of Platform aware widgets

Flutter Platform Widgets This project is an attempt to see if it is possible to create widgets that are platform aware. Currently in order to render t

Jan 4, 2023

Firebase dart common interface and implementation for Browser, VM, node and flutter

firebase.dart Firebase dart common interface and implementation for Browser, VM, node and flutter Firebase Initialization Usage in browser import 'pac

Nov 28, 2021

Flutter animation tutorials, such common animation, flare animation.

Flutter animation tutorials, such common animation, flare animation.

❤️ Star ❤️ the repo to support the project or 😄 Follow Me.Thanks! Facebook Page Facebook Group QQ Group Developer Flutter Open Flutter Open 963828159

Sep 3, 2022

A new flutter package for collection of common popular social media widgets

A new flutter package for collection of common popular social media widgets

Social Media Widgets - package A new flutter package for collection of common popular social media widgets Currently available widgets Snapchat screen

Nov 12, 2022

Collection of common localization assets for Nations package

Nations Assets 🌍 collection of common localization assets for Nations package. FAQ Why not with Nations ? to make the Nations smaller and give the us

Jun 22, 2022

Dart common utils library. DateUtil, EncryptUtil, JsonUtil, LogUtil, MoneyUtil, NumUtil, ObjectUtil, RegexUtil, TextUtil, TimelineUtil, TimerUtil.

Dart common utils library. DateUtil, EncryptUtil, JsonUtil, LogUtil, MoneyUtil, NumUtil, ObjectUtil,  RegexUtil, TextUtil, TimelineUtil, TimerUtil.

Dart common utils library. DateUtil, EncryptUtil, JsonUtil, LogUtil, MoneyUtil, NumUtil, ObjectUtil, RegexUtil, TextUtil, TimelineUtil, TimerUtil.

Dec 22, 2022

Contactus - a flutter package. The most common functionality added in any commercial app is the Developer's contact details

Contactus - a flutter package. The most common functionality added in any commercial app is the Developer's contact details

Contact Us The most common functionality added in any commercial app is the Developer's contact details!! So this package helps the developers to simp

Aug 4, 2022
Owner
kamlesh lakhani
I am android developer . Only for focus generic language.
kamlesh lakhani
An application of learning outcomes from the Mastering Flutter 2.0 class: Building Travel and Aircraft Applications Buildwithangga

An application of learning outcomes from the Mastering Flutter 2.0 class: Building Travel and Aircraft Applications Buildwithangga

Latoe 2 Aug 29, 2022
The Drawer Manager class has the ability to swap Scaffold body contents, using a custom provider

The Drawer Manager class has the ability to swap Scaffold body contents, using a custom provider. Open Drawer Hello, Flutter! Counter The MAC All Page

The Mobile Applications Community 2 Mar 18, 2022
A Flutter project that implemented getx package and firebase services.

Get X Firebase A Flutter Package that implemented firebase services with getx package. It's free, open source, complete, rapid development package for

Faisal Ramdan 19 Nov 26, 2022
Berikut merupakan source code Chat Apps dengan Flutter + GetX + Firebase

chatapp A new Flutter project. Getting Started This project is a starting point for a Flutter application. A few resources to get you started if this

Sandikha Rahardi 52 Dec 31, 2022
E-Commerce App built on Flutter with Firebase, SQLite, GetX and MVVM Architecture.

Shopzler A new open source E-commerce App created using Flutter and GetX. ScreenShots Features : Sign-In, Sign-Up and LogOut using Email & Password /

AHMED ELSAYED 138 Jan 6, 2023
GETX 2.13.1 COMMON CLASS

ecommerce export PATH="$PATH:/Users/mac/Documents/flutter/bin" shopping use total price count num get totalPrice => items.fold(0, (total, current) =>

kamlesh lakhani 8 Jan 30, 2022
package library for extended_image, extended_text and extended_text_field,provide common base class.

extended_image_library package library for extended_image extended_image A powerful official extension library of image, which support placeholder(loa

FlutterCandies 124 Dec 31, 2022
A new Flutter project. Use of Padding Class(Widget) and Card Class (Widget)

Use_Of_Card_And_Padding_Class A new Flutter project. Use of Padding Class(Widget) and Card Class (Widget) Getting Started This project is a starting p

Avinandan Bose 1 Mar 18, 2022
constructing... Flutter, Ganache, Truffle, Remix, Getx Pattern, Infura, GetX, Blockchain

constructing... Flutter, Ganache, Truffle, Remix, Getx Pattern, Infura, GetX, Blockchain

Kauê Murakami 20 Dec 20, 2022
A basic boilerplate template for starting a Flutter GetX project. GetX, Dio, MVVM, get CLI, Localization, Pagination etc are implemented.

Flutter GetX Template (GetX, Dio, MVVM) This Flutter Template using GetX package for State management, routing and Dependency Injection (bindings). We

Hasan Abdullah 214 Jan 9, 2023