mirror of
https://github.com/hmalik144/easy_cc_flutter.git
synced 2026-03-18 07:35:54 +00:00
Layout created for single screen app
This commit is contained in:
43
lib/Home.dart
Normal file
43
lib/Home.dart
Normal file
@@ -0,0 +1,43 @@
|
||||
import 'package:easy_cc_flutter/MainViewModel.dart';
|
||||
import 'package:easy_cc_flutter/views/DropDownBox.dart';
|
||||
import 'package:easy_cc_flutter/views/EditText.dart';
|
||||
import 'package:flutter/cupertino.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter/src/widgets/framework.dart';
|
||||
|
||||
import 'BaseStatelessWidget.dart';
|
||||
|
||||
class HomePage extends BaseStatelessWidget<MainViewModel> {
|
||||
@override
|
||||
MainViewModel createViewModel() {
|
||||
return MainViewModel();
|
||||
}
|
||||
|
||||
@override
|
||||
Widget displayWidget(
|
||||
BuildContext context, MainViewModel model, Widget? child) {
|
||||
return Column(
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
children: [
|
||||
Padding(
|
||||
padding: const EdgeInsets.all(8.0),
|
||||
child: Column(
|
||||
children: [
|
||||
DropDownBox(model.data, (selected) {}),
|
||||
EditText("Enter conversion from", model.top, (selection) => {})
|
||||
],
|
||||
),
|
||||
),
|
||||
Padding(
|
||||
padding: const EdgeInsets.all(8.0),
|
||||
child: Column(
|
||||
children: [
|
||||
DropDownBox(model.data, (selected) {}),
|
||||
EditText("Enter conversion from", model.bottom, (selection) => {})
|
||||
],
|
||||
),
|
||||
),
|
||||
],
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user