Calculator initialize
parent
f955ff8d71
commit
71fb01ee93
|
|
@ -10,6 +10,8 @@ import 'package:stacked/stacked.dart';
|
||||||
import 'package:aman_kassa_flutter/core/models/ProductDao.dart';
|
import 'package:aman_kassa_flutter/core/models/ProductDao.dart';
|
||||||
import 'package:aman_kassa_flutter/widgets/components/ProductListItem.dart';
|
import 'package:aman_kassa_flutter/widgets/components/ProductListItem.dart';
|
||||||
import 'home_view_model.dart';
|
import 'home_view_model.dart';
|
||||||
|
import '../../widgets/components/calculator/calculator-buttons.dart';
|
||||||
|
import '../../widgets/components/calculator/number-display.dart';
|
||||||
|
|
||||||
part './tabs/KassaTab.dart';
|
part './tabs/KassaTab.dart';
|
||||||
part './tabs/CalculatorTab.dart';
|
part './tabs/CalculatorTab.dart';
|
||||||
|
|
|
||||||
|
|
@ -9,13 +9,12 @@ class CalculatorTab extends StatelessWidget {
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return Scaffold(
|
return Scaffold(
|
||||||
body: Center(
|
body: Column(
|
||||||
child: Column(
|
children: <Widget>[
|
||||||
children: <Widget>[
|
NumberDisplay(value: 'values'),
|
||||||
Text('CalculatorTab index:$index ${viewModel.currentUser.fullName} ',
|
CalculatorButtons(onTap: null),
|
||||||
style: TextStyle(color: Colors.black87))
|
],
|
||||||
],
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||||
),
|
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -22,9 +22,9 @@ class CalculatorButton extends StatelessWidget {
|
||||||
onPressed: () => onTap(buttonText: text),
|
onPressed: () => onTap(buttonText: text),
|
||||||
child: Text(
|
child: Text(
|
||||||
text,
|
text,
|
||||||
style: TextStyle(fontSize: 18, fontWeight: FontWeight.w500),
|
style: TextStyle(fontSize: 25, fontWeight: FontWeight.w500),
|
||||||
),
|
),
|
||||||
padding: EdgeInsets.all(30),
|
padding: EdgeInsets.all(15),
|
||||||
highlightColor: Colors.blueGrey[100],
|
highlightColor: Colors.blueGrey[100],
|
||||||
splashColor: Colors.blueAccent[100],
|
splashColor: Colors.blueAccent[100],
|
||||||
)));
|
)));
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue