Skip to content

Commit

Permalink
fix homescreen alignment (#53)
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewhoman authored May 6, 2024
1 parent 85b1105 commit 12a4958
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 44 deletions.
81 changes: 43 additions & 38 deletions lib/onboarding/view/wallet_creation_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -25,47 +25,52 @@ class LandingScreen extends StatelessWidget {
package: 'genius_wallet',
),
),
Column(mainAxisAlignment: MainAxisAlignment.end, children: [
SizedBox(
height: 50,
width: 450,
child: LayoutBuilder(
builder: (context, constraints) =>
TypeExisting(constraints),
),
),
const SizedBox(
height: 20,
),
SizedBox(
height: 50,
width: 450,
child: LayoutBuilder(
builder: (context, constraints) => TypeCreate(constraints),
),
),
Align(
alignment: Alignment.center,
child: Column(
mainAxisAlignment: MainAxisAlignment.end,
children: [
SizedBox(
height: 50,
width: 450,
child: LayoutBuilder(
builder: (context, constraints) =>
TypeExisting(constraints),
),
),
const SizedBox(
height: 20,
),
SizedBox(
height: 50,
width: 450,
child: LayoutBuilder(
builder: (context, constraints) =>
TypeCreate(constraints),
),
),

/*** Below is the test code to test native c/c++ code ***/
/*** Below is the test code to test native c/c++ code ***/

// Container(
// margin: const EdgeInsets.only(top: 10.0),
// child: ElevatedButton(r
// onPressed: () {
// context.read<AppBloc>().add(FFITestEvent());
// },
// child: const Text("Test C++ native code!"),
// ),
// ),
// Container(
// margin: const EdgeInsets.only(top: 10.0),
// child: ElevatedButton(r
// onPressed: () {
// context.read<AppBloc>().add(FFITestEvent());
// },
// child: const Text("Test C++ native code!"),
// ),
// ),

BlocBuilder<AppBloc, AppState>(
builder: (context, state) {
if (state.ffiString != null) {
return Text('Value: ${state.ffiString}');
}
return const SizedBox();
},
),
])
BlocBuilder<AppBloc, AppState>(
builder: (context, state) {
if (state.ffiString != null) {
return Text('Value: ${state.ffiString}');
}
return const SizedBox();
},
),
]))
],
),
),
Expand Down
6 changes: 0 additions & 6 deletions lib/widgets/components/wallet_button/type_existing.g.dart
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
// *********************************************************************************
// PARABEAC-GENERATED CODE. DO NOT MODIFY.
//
// FOR MORE INFORMATION ON HOW TO USE PARABEAC, PLEASE VISIT docs.parabeac.com
// *********************************************************************************

import 'package:flutter/material.dart';
import 'package:genius_wallet/theme/genius_wallet_colors.g.dart';
import 'package:genius_wallet/theme/genius_wallet_font_size.dart';
Expand Down

0 comments on commit 12a4958

Please sign in to comment.