fastyle_calculator 1.66.0 copy "fastyle_calculator: ^1.66.0" to clipboard
fastyle_calculator: ^1.66.0 copied to clipboard

PlatformiOS

Set of calculator Widgets for the fastyle library.

example/lib/main.dart

// Flutter imports:
import 'package:flutter/material.dart';

// Package imports:
import 'package:fastyle_core/fastyle_core.dart';
import 'package:go_router/go_router.dart';

// Project imports:
import 'package:fastyle_calculator_example/ui/pages/sum_calculator.page.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return FastApp(
      routesForMediaType: (mediaType) => [
        GoRoute(path: '/', builder: (_, __) => const SumCalculatorPage()),
      ],
    );
  }
}