59 lines
2.2 KiB
Dart
59 lines
2.2 KiB
Dart
import 'package:aman_kassa_flutter/redux/state/user_state.dart';
|
||
import 'package:aman_kassa_flutter/redux/store.dart';
|
||
import 'package:aman_kassa_flutter/shared/app_colors.dart';
|
||
import 'package:aman_kassa_flutter/shared/ui_helpers.dart';
|
||
import 'package:aman_kassa_flutter/widgets/fields/busy_button.dart';
|
||
import 'package:flutter/material.dart';
|
||
import 'package:flutter_redux/flutter_redux.dart';
|
||
import 'package:google_fonts/google_fonts.dart';
|
||
|
||
class AdditionalTab extends StatelessWidget {
|
||
final int index;
|
||
AdditionalTab(this.index);
|
||
@override
|
||
Widget build(BuildContext context) {
|
||
return StoreConnector<AppState, UserState>(
|
||
converter: (store) => store.state.userState,
|
||
builder: (context, vm) {
|
||
return Container(
|
||
padding: const EdgeInsets.symmetric(vertical: 15),
|
||
child: Column(
|
||
children: <Widget>[
|
||
verticalSpaceLarge,
|
||
Row(
|
||
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
|
||
children: <Widget>[
|
||
BusyButton(title: 'Открыть смену', onPressed: null, mainColor: greenColor,),
|
||
BusyButton(title: 'Закрыть смену', onPressed: null, mainColor: redColor ,),
|
||
],
|
||
),
|
||
verticalSpaceLarge,
|
||
Row(
|
||
mainAxisAlignment: MainAxisAlignment.center,
|
||
children: <Widget>[
|
||
BusyButton(title: 'Денег в кассе', onPressed: null,),
|
||
],
|
||
),
|
||
verticalSpaceLarge,
|
||
Row(
|
||
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
|
||
children: <Widget>[
|
||
BusyButton(title: 'Взнос наличных', onPressed: null,),
|
||
BusyButton(title: 'Снятие наличных', onPressed: null, mainColor: redColor ,),
|
||
],
|
||
),
|
||
verticalSpaceLarge,
|
||
Row(
|
||
mainAxisAlignment: MainAxisAlignment.center,
|
||
children: <Widget>[
|
||
BusyButton(title: 'Х Отчет', onPressed: null,),
|
||
],
|
||
)
|
||
],
|
||
),
|
||
);
|
||
},
|
||
|
||
);
|
||
}
|
||
} |