fastyle_digit_calculator 0.0.41 fastyle_digit_calculator: ^0.0.41 copied to clipboard
UI digit calculator built on top of the Fastyle library.
// Flutter imports:
import 'package:flutter/material.dart';
// Package imports:
import 'package:fastyle_core/fastyle_core.dart';
import 'package:fastyle_digit_calculator/digit_calculator.dart';
import 'package:go_router/go_router.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatefulWidget {
const MyApp({super.key});
@override
MyAppState createState() => MyAppState();
}
class MyAppState extends State<MyApp> {
@override
Widget build(BuildContext context) {
return FastApp(
routesForMediaType: (mediaType) => [
GoRoute(
path: '/',
builder: (_, __) => const Scaffold(body: FastDigitCalculator()),
),
],
);
}
}