|
|
@ -15,6 +15,7 @@ import 'package:gallery/studies/shrine/theme.dart';
|
|
|
|
import 'package:gallery/l10n/gallery_localizations.dart';
|
|
|
|
import 'package:gallery/l10n/gallery_localizations.dart';
|
|
|
|
|
|
|
|
|
|
|
|
const _startColumnWidth = 60.0;
|
|
|
|
const _startColumnWidth = 60.0;
|
|
|
|
|
|
|
|
const _ordinalSortKeyName = 'shopping_cart';
|
|
|
|
|
|
|
|
|
|
|
|
class ShoppingCartPage extends StatefulWidget {
|
|
|
|
class ShoppingCartPage extends StatefulWidget {
|
|
|
|
@override
|
|
|
|
@override
|
|
|
@ -39,7 +40,6 @@ class _ShoppingCartPageState extends State<ShoppingCartPage> {
|
|
|
|
@override
|
|
|
|
@override
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
final ThemeData localTheme = Theme.of(context);
|
|
|
|
final ThemeData localTheme = Theme.of(context);
|
|
|
|
|
|
|
|
|
|
|
|
return Scaffold(
|
|
|
|
return Scaffold(
|
|
|
|
backgroundColor: shrinePink50,
|
|
|
|
backgroundColor: shrinePink50,
|
|
|
|
body: SafeArea(
|
|
|
|
body: SafeArea(
|
|
|
@ -50,7 +50,9 @@ class _ShoppingCartPageState extends State<ShoppingCartPage> {
|
|
|
|
children: [
|
|
|
|
children: [
|
|
|
|
ListView(
|
|
|
|
ListView(
|
|
|
|
children: [
|
|
|
|
children: [
|
|
|
|
Row(
|
|
|
|
Semantics(
|
|
|
|
|
|
|
|
sortKey: OrdinalSortKey(0, name: _ordinalSortKeyName),
|
|
|
|
|
|
|
|
child: Row(
|
|
|
|
children: [
|
|
|
|
children: [
|
|
|
|
SizedBox(
|
|
|
|
SizedBox(
|
|
|
|
width: _startColumnWidth,
|
|
|
|
width: _startColumnWidth,
|
|
|
@ -77,11 +79,18 @@ class _ShoppingCartPageState extends State<ShoppingCartPage> {
|
|
|
|
),
|
|
|
|
),
|
|
|
|
],
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
|
|
|
|
),
|
|
|
|
const SizedBox(height: 16),
|
|
|
|
const SizedBox(height: 16),
|
|
|
|
Column(
|
|
|
|
Semantics(
|
|
|
|
|
|
|
|
sortKey: OrdinalSortKey(1, name: _ordinalSortKeyName),
|
|
|
|
|
|
|
|
child: Column(
|
|
|
|
children: _createShoppingCartRows(model),
|
|
|
|
children: _createShoppingCartRows(model),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
ShoppingCartSummary(model: model),
|
|
|
|
),
|
|
|
|
|
|
|
|
Semantics(
|
|
|
|
|
|
|
|
sortKey: OrdinalSortKey(2, name: _ordinalSortKeyName),
|
|
|
|
|
|
|
|
child: ShoppingCartSummary(model: model),
|
|
|
|
|
|
|
|
),
|
|
|
|
const SizedBox(height: 100),
|
|
|
|
const SizedBox(height: 100),
|
|
|
|
],
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
@ -89,6 +98,8 @@ class _ShoppingCartPageState extends State<ShoppingCartPage> {
|
|
|
|
bottom: 16,
|
|
|
|
bottom: 16,
|
|
|
|
start: 16,
|
|
|
|
start: 16,
|
|
|
|
end: 16,
|
|
|
|
end: 16,
|
|
|
|
|
|
|
|
child: Semantics(
|
|
|
|
|
|
|
|
sortKey: OrdinalSortKey(3, name: _ordinalSortKeyName),
|
|
|
|
child: RaisedButton(
|
|
|
|
child: RaisedButton(
|
|
|
|
shape: const BeveledRectangleBorder(
|
|
|
|
shape: const BeveledRectangleBorder(
|
|
|
|
borderRadius: BorderRadius.all(Radius.circular(7)),
|
|
|
|
borderRadius: BorderRadius.all(Radius.circular(7)),
|
|
|
@ -109,6 +120,7 @@ class _ShoppingCartPageState extends State<ShoppingCartPage> {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
|
|
|
|
),
|
|
|
|
],
|
|
|
|
],
|
|
|
|
);
|
|
|
|
);
|
|
|
|
},
|
|
|
|
},
|
|
|
|