This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/material.dart'; | |
class ColorFiltersDemo extends StatefulWidget { | |
@override | |
State<StatefulWidget> createState() => ColorFilterDemoState(); | |
} | |
class ColorFilterDemoState extends State<ColorFiltersDemo> { | |
int selectedBlendModeIndex = 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/material.dart'; | |
class ProductsListingPage extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
final screenHeight = MediaQuery.of(context).size.height; | |
return Scaffold( | |
appBar: AppBar( | |
elevation: 0.0, | |
leading: Padding( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
body: SingleChildScrollView( | |
child: Column( | |
children: <Widget>[ | |
Container( | |
margin: const EdgeInsets.symmetric(horizontal: 20, vertical: 10), | |
decoration: BoxDecoration( | |
color: Color(0xFFE0E0E0), | |
borderRadius: BorderRadius.all(Radius.circular(30)), | |
), | |
child: TextField( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
body: SingleChildScrollView( | |
child: Column( | |
children: <Widget>[ | |
TopBar(), | |
], | |
), | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/material.dart'; | |
class Product { | |
final String imagePath, name, description, buttonText, price, productInfo; | |
final Color backgroundColor; | |
Product({this.imagePath, this.name, this.description, this.buttonText, this.backgroundColor, this.price = "", this.productInfo = ""}); | |
} | |
final Product pixelStand = Product( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/material.dart'; | |
import '../../models/product.dart'; | |
import 'blue_button.dart'; | |
class RightImageProductImageWidget extends StatelessWidget { | |
const RightImageProductImageWidget({ | |
Key key, | |
@required this.screenHeight, | |
@required this.product, | |
}) : super(key: key); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
body: SingleChildScrollView( | |
child: Column( | |
children: <Widget>[ | |
TopBar(), | |
RightImageProductImageWidget( | |
screenHeight: screenHeight, | |
product: pixel, | |
) | |
], | |
), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/material.dart'; | |
import '../../models/product.dart'; | |
import 'blue_button.dart'; | |
class LeftImageProductItemWidget extends StatelessWidget { | |
const LeftImageProductItemWidget({Key key, @required this.screenHeight, @required this.product}) : super(key: key); | |
final double screenHeight; | |
final Product product; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
body: SingleChildScrollView( | |
child: Column( | |
children: <Widget>[ | |
TopBar(), | |
RightImageProductImageWidget( | |
screenHeight: screenHeight, | |
product: pixel, | |
), | |
LeftImageProductItemWidget( | |
screenHeight: screenHeight, |
OlderNewer