Skip to content

Instantly share code, notes, and snippets.

import 'package:flutter/material.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
import 'package:flutter/material.dart';
class ProductAppBar extends StatelessWidget with PreferredSizeWidget {
final Color color;
final String text;
const ProductAppBar({
Key? key,
required this.color,
required this.text,
class ProductText extends StatelessWidget {
final String text;
final double fontSize;
final FontWeight fontWeight;
const ProductText({
Key? key,
this.fontSize = 16.0,
this.fontWeight = FontWeight.normal,
required this.text,
class Tags extends StatelessWidget {
final List<String> tags;
final Color bgColor;
const Tags({
Key? key,
required this.tags,
required this.bgColor,
}) : super(key: key);
class QuantitySelector extends StatefulWidget {
const QuantitySelector({Key? key}) : super(key: key);
@override
State<QuantitySelector> createState() => _QuantitySelectorState();
}
class _QuantitySelectorState extends State<QuantitySelector> {
int quantity = 1;
class PurchaseButton extends StatelessWidget {
final Color color;
final VoidCallback onPurchaseHandler;
const PurchaseButton({
required this.color,
required this.onPurchaseHandler,
Key? key,
}) : super(key: key);
class ProductBody extends StatelessWidget {
final Color color;
final String webViewUrl;
final String title;
final List<String> tags;
final String description;
const ProductBody({
Key? key,
required this.color,
class ProductPage extends StatelessWidget {
const ProductPage({super.key});
@override
Widget build(BuildContext context) {
return const Scaffold(
appBar: ProductAppBar(
color: blue,
text: appBarTitle,
),
{
"name": "NewTestRun",
"isAutomated": true,
"plan": {
"id": "1"
}
}
[
{
"durationInMs": 2558,
"testCaseRevision": "4",
"computerName": "computer",
"startedDate": "2020-10-01T14:09:04.068028700",
"state": "Completed",
"testCaseTitle": "en başta bu bilgiyi almıştık",
"testPoint": {
"id": 5