96 lines
3.5 KiB
Dart
96 lines
3.5 KiB
Dart
import 'package:aman_kassa_flutter/shared/app_colors.dart';
|
|
import 'package:aman_kassa_flutter/shared/ui_helpers.dart';
|
|
import 'package:flutter/material.dart';
|
|
|
|
class ProductAddBottomSheet extends StatelessWidget {
|
|
final ScrollController scrollController;
|
|
|
|
ProductAddBottomSheet({this.scrollController});
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Container(
|
|
decoration: BoxDecoration(color: whiteColor),
|
|
child: Scaffold(
|
|
appBar: AppBar(
|
|
iconTheme: IconThemeData(color: Colors.black),
|
|
backgroundColor: fillColor,
|
|
elevation: 3,
|
|
title: Text('Добавить товар/услугу', style: TextStyle(color: Colors.black87),),
|
|
),
|
|
body: Padding(
|
|
padding: const EdgeInsets.symmetric(vertical: 15, horizontal: 10),
|
|
child: ListView(
|
|
controller: scrollController,
|
|
children: <Widget>[
|
|
TextField(
|
|
decoration: new InputDecoration(
|
|
border: new OutlineInputBorder(borderSide: new BorderSide(color: primaryColor)),
|
|
hintText: 'Введите наименовение',
|
|
labelText: 'Наименование',
|
|
prefixText: ' ',
|
|
),
|
|
),
|
|
verticalSpaceSmall,
|
|
TextField(
|
|
decoration: new InputDecoration(
|
|
border: new OutlineInputBorder(borderSide: new BorderSide(color: primaryColor)),
|
|
hintText: 'Введите количество',
|
|
labelText: 'Количество',
|
|
prefixText: ' ',
|
|
),
|
|
),
|
|
verticalSpaceSmall,
|
|
TextField(
|
|
decoration: new InputDecoration(
|
|
border: new OutlineInputBorder(borderSide: new BorderSide(color: primaryColor)),
|
|
hintText: 'Введите цену за единицу',
|
|
labelText: 'Стоимость',
|
|
prefixText: ' ',
|
|
),
|
|
),
|
|
const Divider(
|
|
height: 1.0,
|
|
),
|
|
new ListTile(
|
|
leading: const Icon(Icons.account_balance_wallet, color: primaryColor,),
|
|
title: const Text('0,454'),
|
|
subtitle: const Text('Стоимость'),
|
|
),
|
|
verticalSpaceMedium,
|
|
Row(
|
|
mainAxisAlignment: MainAxisAlignment.spaceAround,
|
|
children: <Widget>[
|
|
RawMaterialButton(
|
|
onPressed: () {},
|
|
elevation: 2.0,
|
|
fillColor: greenColor,
|
|
child: Icon(
|
|
Icons.done,
|
|
size: 35.0,
|
|
color: whiteColor,
|
|
),
|
|
padding: EdgeInsets.all(15.0),
|
|
shape: CircleBorder(),
|
|
),
|
|
RawMaterialButton(
|
|
onPressed: () {},
|
|
elevation: 2.0,
|
|
fillColor: redColor,
|
|
child: Icon(
|
|
Icons.close,
|
|
size: 35.0,
|
|
color: whiteColor,
|
|
),
|
|
padding: EdgeInsets.all(15.0),
|
|
shape: CircleBorder(),
|
|
)
|
|
],
|
|
)
|
|
],
|
|
),
|
|
),
|
|
),
|
|
);
|
|
}
|
|
}
|