Skip to content

Commit

Permalink
。。
Browse files Browse the repository at this point in the history
  • Loading branch information
liamkuan committed Apr 26, 2019
1 parent 41939c4 commit bcf1796
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 37 deletions.
1 change: 1 addition & 0 deletions lib/src/command/cmdMethod.dart
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ class CmdMethodUtil {
return answer.first;
}

///创建一个线程用于计算微积分
static void _isolateCalculus(SendPort port) {
final rPort = ReceivePort();
port.send(rPort.sendPort);
Expand Down
74 changes: 37 additions & 37 deletions lib/src/view/route/dataRoute.dart
Original file line number Diff line number Diff line change
Expand Up @@ -222,42 +222,42 @@ class AndDataRoute extends StatelessWidget {
length: 2, //tabBar的数量
child: Scaffold(
body: NestedScrollView(
headerSliverBuilder: (context, isShow) => <Widget>[
SliverAppBar(
actions: <Widget>[
IconButton(
icon: Icon(Icons.delete),
onPressed: () => _handleEmpty(context),
),
],
title: Text("Saved"),
centerTitle: true,
pinned: false,
expandedHeight: 100.0,
),
SliverPersistentHeader(
delegate: _SliverAppBarDelegate(TabBar(
labelColor: Colors.black,
indicatorColor: CupertinoColors.white,
tabs: <Widget>[
Tab(
text: "Data",
),
Tab(
text: "Method",
),
],
)),
pinned: true,
)
],
body: TabBarView(
children: <Widget>[
_buildDataView(),
_buildMethodView(),
headerSliverBuilder: (context, isShow) => <Widget>[
SliverAppBar(
actions: <Widget>[
IconButton(
icon: Icon(Icons.delete),
onPressed: () => _handleEmpty(context),
),
],
title: Text("Saved"),
centerTitle: true,
pinned: false,
expandedHeight: 100.0,
),
SliverPersistentHeader(
delegate: _SliverAppBarDelegate(TabBar(
labelColor: Colors.black,
indicatorColor: CupertinoColors.white,
tabs: <Widget>[
Tab(
text: "Data",
),
Tab(
text: "Method",
),
],
)),
pinned: true,
)
],
),
body: TabBarView(
children: <Widget>[
_buildDataView(),
_buildMethodView(),
],
),
),
floatingActionButton: FloatingActionButton(
child: const Icon(Icons.add),
onPressed: () {
Expand Down Expand Up @@ -373,9 +373,9 @@ class _SliverAppBarDelegate extends SliverPersistentHeaderDelegate {
Widget build(
BuildContext context, double shrinkOffset, bool overlapsContent) {
return new Container(
color: Colors.blue,
child: _tabBar,
);
color: Colors.blue,
child: _tabBar,
);
}

@override
Expand Down

0 comments on commit bcf1796

Please sign in to comment.