mirror of
https://github.com/wownero/cyberwow.git
synced 2026-11-21 23:54:09 +01:00
prepare pageview with dummy
This commit is contained in:
@@ -24,7 +24,7 @@ import 'package:flutter/material.dart';
|
||||
import '../state.dart';
|
||||
import '../config.dart';
|
||||
|
||||
Widget summary(BuildContext context, SyncedState state) {
|
||||
Widget summary(SyncedState state) {
|
||||
return Container
|
||||
(
|
||||
padding: EdgeInsets.only(bottom: 10.0),
|
||||
@@ -90,20 +90,27 @@ Widget summary(BuildContext context, SyncedState state) {
|
||||
);
|
||||
}
|
||||
|
||||
Widget helloPage(SyncedState state) {
|
||||
return Container
|
||||
(
|
||||
child: Text('HelloPage'),
|
||||
);
|
||||
}
|
||||
|
||||
Widget pageView (SyncedState state, PageController controller) {
|
||||
return PageView (
|
||||
controller: controller,
|
||||
children:
|
||||
[
|
||||
summary(state),
|
||||
helloPage(state),
|
||||
],
|
||||
);
|
||||
}
|
||||
|
||||
Widget buildSynced(BuildContext context, SyncedState state, PageController controller) {
|
||||
return Scaffold
|
||||
(
|
||||
body: PageView
|
||||
(
|
||||
controller: controller,
|
||||
children:
|
||||
[
|
||||
summary(context, state),
|
||||
Container
|
||||
(
|
||||
child: Text('Hello'),
|
||||
),
|
||||
],
|
||||
),
|
||||
body: pageView(state, controller)
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user