main.dart
1007 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
import 'package:flutter/material.dart';
import 'demo.dart';
import 'equations.dart';
import 'feature.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) => MaterialApp(
title: 'Flutter Math Demo v0.2.0',
theme: ThemeData(
primarySwatch: Colors.blue,
visualDensity: VisualDensity.adaptivePlatformDensity,
),
home: DefaultTabController(
length: 3,
child: Scaffold(
appBar: AppBar(
title: Text(
'Flutter Math Demo v0.2.0',
),
bottom: TabBar(tabs: [
Text('Interactive Demo'),
Text('Equation Samples'),
Text('Supported Features'),
]),
),
body: TabBarView(children: [
DemoPage(),
EquationsPage(),
FeaturePage(),
]),
),
),
);
}