Skip to content

Commit

Permalink
Revert "Update home_page.dart"
Browse files Browse the repository at this point in the history
This reverts commit 7cd705d.
  • Loading branch information
mikegapinski committed Oct 22, 2023
1 parent 448ac12 commit f29c89d
Showing 1 changed file with 23 additions and 26 deletions.
49 changes: 23 additions & 26 deletions lib/feature/home/home_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -37,32 +37,29 @@ class HomePage extends StatelessWidget {
.onWindowSizeChanged(
Size(constraints.maxWidth, constraints.maxHeight),
);
return Column(
mainAxisAlignment: MainAxisAlignment.start,
crossAxisAlignment: CrossAxisAlignment.center,
children: [
BlocBuilder<DisplayCubit, DisplayState>(
builder: (context, state) {
if (state is DisplayStateNormal) {
return AspectRatio(
aspectRatio: state.adjustedSize.width /
state.adjustedSize.height,
child: Stack(
fit: StackFit.expand,
children: [
DisplayView(type: state.rendererType),
PointerInterceptor(
child: TouchScreenView(
displaySize: state.adjustedSize),
),
],
),
);
} else {
return const CircularProgressIndicator();
}
}),
],
return Center(
child: BlocBuilder<DisplayCubit, DisplayState>(
builder: (context, state) {
if (state is DisplayStateNormal) {
return AspectRatio(
aspectRatio: state.adjustedSize.width /
state.adjustedSize.height,
child: Stack(
fit: StackFit.expand,
alignment: Alignment.topCenter,
children: [
DisplayView(type: state.rendererType),
PointerInterceptor(
child: TouchScreenView(
displaySize: state.adjustedSize),
),
],
),
);
} else {
return const CircularProgressIndicator();
}
}),
);
}),
Positioned(
Expand Down

0 comments on commit f29c89d

Please sign in to comment.