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:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user