1
0
mirror of https://github.com/flutter/samples.git synced 2025-11-10 23:08:59 +00:00

simplistic_calculator: Breaking apart into a bunch of steps (#1033)

This commit is contained in:
Brett Morgan
2022-03-04 15:25:00 +10:00
committed by GitHub
parent 6d7ff34d62
commit 3cfdc5927e
97 changed files with 15583 additions and 4 deletions

View File

@@ -12,9 +12,6 @@ import 'package:flutter_riverpod/flutter_riverpod.dart';
import 'package:math_expressions/math_expressions.dart';
import 'package:window_size/window_size.dart';
const double windowWidth = 600;
const double windowHeight = 900;
void main() {
if (!kIsWeb && (Platform.isWindows || Platform.isLinux || Platform.isMacOS)) {
WidgetsFlutterBinding.ensureInitialized();
@@ -472,7 +469,7 @@ class CalcButton extends ConsumerWidget {
return SizedBox.expand(
child: Padding(
padding: const EdgeInsets.all(8),
padding: const EdgeInsets.all(4),
child: buttonConstructor(
onPressed: () => op(ref.read(calculatorStateProvider.notifier)),
child: AutoSizeText(