From 5a36c06db00d31abe61bcdce2c9f8083f60f1305 Mon Sep 17 00:00:00 2001 From: Uray Syawaludin Date: Wed, 23 Oct 2019 21:08:35 +0700 Subject: [PATCH] ok --- .../auth/employer/login_signup_employer.dart | 6 - .../ui/settings/setting_payment_method.dart | 729 +++++++++--------- .../settings/settings_ui_invite_friends.dart | 264 ++++--- {spaceweb/test => test}/widget_test.dart | 4 +- 4 files changed, 525 insertions(+), 478 deletions(-) rename {spaceweb/test => test}/widget_test.dart (92%) diff --git a/lib/src/ui/auth/employer/login_signup_employer.dart b/lib/src/ui/auth/employer/login_signup_employer.dart index 517ad17..0716655 100644 --- a/lib/src/ui/auth/employer/login_signup_employer.dart +++ b/lib/src/ui/auth/employer/login_signup_employer.dart @@ -1,13 +1,7 @@ import 'package:flutter/material.dart'; import 'package:flutter_svg/flutter_svg.dart'; -import 'package:provider/provider.dart'; import 'package:material_design_icons_flutter/material_design_icons_flutter.dart'; -import 'package:space/navigator_employer.dart'; -import 'package:space/src/core/models/http_exception.dart'; -import 'package:space/src/core/models/auth.dart'; -import 'package:space/src/ui/auth/employer/intro_employer.dart'; -import 'package:space/src/ui/auth/employer/ui_get_started_employer.dart'; import 'package:space/src/ui/components/otp_employer.dart'; enum AuthMode { Signup, Login } diff --git a/lib/src/ui/settings/setting_payment_method.dart b/lib/src/ui/settings/setting_payment_method.dart index 78b1f94..b0a79b0 100644 --- a/lib/src/ui/settings/setting_payment_method.dart +++ b/lib/src/ui/settings/setting_payment_method.dart @@ -1,6 +1,5 @@ import 'package:flutter/material.dart'; import 'package:feather_icons_flutter/feather_icons_flutter.dart'; -import 'package:material_design_icons_flutter/material_design_icons_flutter.dart'; import 'package:international_phone_input/international_phone_input.dart'; class PaymentMethod extends StatefulWidget { @@ -92,196 +91,198 @@ class _PaymentMethodState extends State context: context, builder: (BuildContext context) { return AlertDialog( - content: Form( - key: _formKey, - child: Column( - crossAxisAlignment: CrossAxisAlignment.start, - mainAxisSize: MainAxisSize.min, - children: [ - Text('Add Card', - style: style.copyWith( - fontSize: 14, - fontWeight: FontWeight.bold)), - Text('Card Number', - style: style.copyWith( - fontSize: 11, - fontWeight: FontWeight.bold, - height: 2)), - Container( - margin: EdgeInsets.only(top: 5, bottom: 20), - child: TextField( - style: style.copyWith( - fontSize: 16, - color: Color(0xff8997a7)), - decoration: InputDecoration( - contentPadding: EdgeInsets.all(10), - enabledBorder: OutlineInputBorder( - borderRadius: - BorderRadius.circular(10.0), - borderSide: BorderSide( - color: Colors.transparent, - width: 1), - ), - focusedBorder: OutlineInputBorder( - borderSide: BorderSide( - color: Color(0xff22c0e8), - width: 1), - borderRadius: - BorderRadius.circular(10.0), + content: SingleChildScrollView( + child: Form( + key: _formKey, + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + mainAxisSize: MainAxisSize.min, + children: [ + Text('Add Card', + style: style.copyWith( + fontSize: 14, + fontWeight: FontWeight.bold)), + Text('Card Number', + style: style.copyWith( + fontSize: 11, + fontWeight: FontWeight.bold, + height: 2)), + Container( + margin: EdgeInsets.only(top: 5, bottom: 20), + child: TextField( + style: style.copyWith( + fontSize: 16, + color: Color(0xff8997a7)), + decoration: InputDecoration( + contentPadding: EdgeInsets.all(10), + enabledBorder: OutlineInputBorder( + borderRadius: + BorderRadius.circular(10.0), + borderSide: BorderSide( + color: Colors.transparent, + width: 1), + ), + focusedBorder: OutlineInputBorder( + borderSide: BorderSide( + color: Color(0xff22c0e8), + width: 1), + borderRadius: + BorderRadius.circular(10.0), + ), + fillColor: Color(0xffdcdfe3), + filled: true, ), - fillColor: Color(0xffdcdfe3), - filled: true, ), ), - ), - Row( - children: [ - Flexible( - child: Column( - crossAxisAlignment: - CrossAxisAlignment.start, - children: [ - Text('Exp Dates', - style: style.copyWith( - fontSize: 11, - fontWeight: FontWeight.bold, - height: 2)), - Container( - margin: EdgeInsets.only( - right: 30, - top: 5, - bottom: 10), - child: TextField( - style: style.copyWith( - fontSize: 16, - color: Color(0xff8997a7)), - decoration: InputDecoration( - contentPadding: - EdgeInsets.all(10), - enabledBorder: - OutlineInputBorder( - borderRadius: - BorderRadius.circular( - 10.0), - borderSide: BorderSide( - color: - Colors.transparent, - width: 1), + Row( + children: [ + Flexible( + child: Column( + crossAxisAlignment: + CrossAxisAlignment.start, + children: [ + Text('Exp Dates', + style: style.copyWith( + fontSize: 11, + fontWeight: FontWeight.bold, + height: 2)), + Container( + margin: EdgeInsets.only( + right: 30, + top: 5, + bottom: 10), + child: TextField( + style: style.copyWith( + fontSize: 16, + color: Color(0xff8997a7)), + decoration: InputDecoration( + contentPadding: + EdgeInsets.all(10), + enabledBorder: + OutlineInputBorder( + borderRadius: + BorderRadius.circular( + 10.0), + borderSide: BorderSide( + color: + Colors.transparent, + width: 1), + ), + focusedBorder: + OutlineInputBorder( + borderSide: BorderSide( + color: + Color(0xff22c0e8), + width: 1), + borderRadius: + BorderRadius.circular( + 10.0), + ), + fillColor: Color(0xffdcdfe3), + filled: true, ), - focusedBorder: - OutlineInputBorder( - borderSide: BorderSide( - color: - Color(0xff22c0e8), - width: 1), - borderRadius: - BorderRadius.circular( - 10.0), - ), - fillColor: Color(0xffdcdfe3), - filled: true, ), ), - ), - ], + ], + ), ), - ), - Flexible( - child: Column( - crossAxisAlignment: - CrossAxisAlignment.start, - children: [ - Text('Security Code', - style: style.copyWith( - fontSize: 11, - fontWeight: FontWeight.bold, - height: 2)), - Container( - margin: EdgeInsets.only( - right: 30, - top: 5, - bottom: 10), - child: TextField( - style: style.copyWith( - fontSize: 16, - color: Color(0xff8997a7)), - decoration: InputDecoration( - focusColor: Colors.yellow, - contentPadding: - EdgeInsets.all(10), - enabledBorder: - OutlineInputBorder( - borderRadius: - BorderRadius.circular( - 10.0), - borderSide: BorderSide( - color: - Colors.transparent, - width: 1), - ), - focusedBorder: - OutlineInputBorder( - borderSide: BorderSide( - color: - Color(0xff22c0e8), - width: 1), - borderRadius: - BorderRadius.circular( - 10.0), + Flexible( + child: Column( + crossAxisAlignment: + CrossAxisAlignment.start, + children: [ + Text('Security Code', + style: style.copyWith( + fontSize: 11, + fontWeight: FontWeight.bold, + height: 2)), + Container( + margin: EdgeInsets.only( + right: 30, + top: 5, + bottom: 10), + child: TextField( + style: style.copyWith( + fontSize: 16, + color: Color(0xff8997a7)), + decoration: InputDecoration( + focusColor: Colors.yellow, + contentPadding: + EdgeInsets.all(10), + enabledBorder: + OutlineInputBorder( + borderRadius: + BorderRadius.circular( + 10.0), + borderSide: BorderSide( + color: + Colors.transparent, + width: 1), + ), + focusedBorder: + OutlineInputBorder( + borderSide: BorderSide( + color: + Color(0xff22c0e8), + width: 1), + borderRadius: + BorderRadius.circular( + 10.0), + ), + fillColor: Color(0xffdcdfe3), + filled: true, ), - fillColor: Color(0xffdcdfe3), - filled: true, ), ), - ), + ], + ), + ), + ], + ), + Row( + children: [ + Checkbox( + checkColor: Color(0xff22c0e8), + activeColor: Colors.white, + value: save, + onChanged: (bool value) { + setState(() { + save = value; + }); + }, + ), + Text('SAVE CARD', + style: style.copyWith( + fontSize: 12, + fontWeight: FontWeight.bold)), + ], + ), + Container( + width: 100, + child: RaisedButton( + shape: RoundedRectangleBorder( + borderRadius: + new BorderRadius.circular(10.0)), + color: Color(0xff22c0e8), + child: Row( + mainAxisAlignment: + MainAxisAlignment.center, + children: [ + Text('ADD CARD', + style: style.copyWith( + fontSize: 12, + color: Colors.white)), ], ), - ), - ], - ), - Row( - children: [ - Checkbox( - checkColor: Color(0xff22c0e8), - activeColor: Colors.white, - value: save, - onChanged: (bool value) { - setState(() { - save = value; - }); + onPressed: () { + if (_formKey.currentState.validate()) { + _formKey.currentState.save(); + } }, ), - Text('SAVE CARD', - style: style.copyWith( - fontSize: 12, - fontWeight: FontWeight.bold)), - ], - ), - Container( - width: 100, - child: RaisedButton( - shape: RoundedRectangleBorder( - borderRadius: - new BorderRadius.circular(10.0)), - color: Color(0xff22c0e8), - child: Row( - mainAxisAlignment: - MainAxisAlignment.center, - children: [ - Text('ADD CARD', - style: style.copyWith( - fontSize: 12, - color: Colors.white)), - ], - ), - onPressed: () { - if (_formKey.currentState.validate()) { - _formKey.currentState.save(); - } - }, - ), - ) - ], + ) + ], + ), ), ), ); @@ -330,184 +331,216 @@ class _PaymentMethodState extends State showDialog( context: context, builder: (BuildContext context) { - return AlertDialog( - content: Form( - key: _formKey, - child: Column( - crossAxisAlignment: CrossAxisAlignment.start, - mainAxisSize: MainAxisSize.min, - children: [ - Text('Add GoPay', - style: style.copyWith( - fontSize: 14, - fontWeight: FontWeight.bold)), - Text('Phone Number', - style: style.copyWith( - fontSize: 11, - fontWeight: FontWeight.bold, - height: 2)), - Row( - children: [ - Flexible( - child: Container( - margin: EdgeInsets.only(top: 5), - child: InternationalPhoneInput( - onPhoneNumberChange: - onPhoneNumberChange, - initialPhoneNumber: phoneNumber, - initialSelection: phoneIsoCode, - hintText: 'eg. 80123456789', - ), - ), - ), - // Flexible( - // child: Container( - // margin: EdgeInsets.only(top: 5), - // child: TextField( - // style: style.copyWith( - // fontSize: 16, - // color: Color(0xff8997a7)), - // decoration: InputDecoration( - // focusColor: Colors.yellow, - // contentPadding: - // EdgeInsets.all(10), - // enabledBorder: OutlineInputBorder( - // borderRadius: - // BorderRadius.circular(10.0), - // borderSide: BorderSide( - // color: Colors.transparent, - // width: 1), - // ), - // focusedBorder: OutlineInputBorder( - // borderSide: BorderSide( - // color: Color(0xff22c0e8), - // width: 1), - // borderRadius: - // BorderRadius.circular(10.0), - // ), - // fillColor: Color(0xffdcdfe3), - // filled: true, - // ), - // ), - // ), - // ), - ], - ), - Row( - children: [ - Flexible( - child: Container( - padding: EdgeInsets.only( - top: 30, bottom: 10, right: 10), - child: RaisedButton( - shape: RoundedRectangleBorder( - borderRadius: - new BorderRadius.circular( - 10.0)), - color: Color(0xff22c0e8), - onPressed: () { - if (_formKey.currentState - .validate()) { - _formKey.currentState.save(); - } - }, - child: Text('SEND OTP', + return AnimatedContainer( + padding: MediaQuery.of(context).padding, + duration: const Duration(milliseconds: 300), + child: AlertDialog( + content: SingleChildScrollView( + scrollDirection: Axis.vertical, + child: Column( + children: [ + Form( + key: _formKey, + child: Column( + crossAxisAlignment: + CrossAxisAlignment.start, + mainAxisSize: MainAxisSize.min, + children: [ + Text('Add GoPay', style: style.copyWith( - fontSize: 10, - color: Colors.white)), - ), - )), - Flexible( - child: Column( - crossAxisAlignment: - CrossAxisAlignment.start, - children: [ - Text('OTP', - style: style.copyWith( - fontSize: 11, - fontWeight: FontWeight.bold, - height: 2)), - Container( - margin: - EdgeInsets.only(right: 30), - child: TextField( - style: style.copyWith( - fontSize: 16, - color: Color(0xff8997a7)), - decoration: InputDecoration( - focusColor: Colors.yellow, - contentPadding: - EdgeInsets.all(10), - enabledBorder: - OutlineInputBorder( - borderRadius: - BorderRadius.circular( - 10.0), - borderSide: BorderSide( - color: - Colors.transparent, - width: 1), - ), - focusedBorder: - OutlineInputBorder( - borderSide: BorderSide( - color: - Color(0xff22c0e8), - width: 1), - borderRadius: - BorderRadius.circular( - 10.0), + fontSize: 14, + fontWeight: FontWeight.bold)), + Text('Phone Number', + style: style.copyWith( + fontSize: 11, + fontWeight: FontWeight.bold, + height: 2)), + Row( + children: [ + Flexible( + child: Container( + margin: + EdgeInsets.only(top: 5), + child: + InternationalPhoneInput( + onPhoneNumberChange: + onPhoneNumberChange, + initialPhoneNumber: + phoneNumber, + initialSelection: + phoneIsoCode, + hintText: 'eg. 80123456789', ), - fillColor: Color(0xffdcdfe3), - filled: true, ), ), + // Flexible( + // child: Container( + // margin: EdgeInsets.only(top: 5), + // child: TextField( + // style: style.copyWith( + // fontSize: 16, + // color: Color(0xff8997a7)), + // decoration: InputDecoration( + // focusColor: Colors.yellow, + // contentPadding: + // EdgeInsets.all(10), + // enabledBorder: OutlineInputBorder( + // borderRadius: + // BorderRadius.circular(10.0), + // borderSide: BorderSide( + // color: Colors.transparent, + // width: 1), + // ), + // focusedBorder: OutlineInputBorder( + // borderSide: BorderSide( + // color: Color(0xff22c0e8), + // width: 1), + // borderRadius: + // BorderRadius.circular(10.0), + // ), + // fillColor: Color(0xffdcdfe3), + // filled: true, + // ), + // ), + // ), + // ), + ], + ), + Row( + children: [ + Flexible( + child: Container( + padding: EdgeInsets.only( + top: 30, + bottom: 10, + right: 10), + child: RaisedButton( + shape: RoundedRectangleBorder( + borderRadius: + new BorderRadius + .circular(10.0)), + color: Color(0xff22c0e8), + onPressed: () { + if (_formKey.currentState + .validate()) { + _formKey.currentState + .save(); + } + }, + child: Text('SEND OTP', + style: style.copyWith( + fontSize: 10, + color: Colors.white)), + ), + )), + Flexible( + child: Column( + crossAxisAlignment: + CrossAxisAlignment.start, + children: [ + Text('OTP', + style: style.copyWith( + fontSize: 11, + fontWeight: + FontWeight.bold, + height: 2)), + Container( + margin: EdgeInsets.only( + right: 30), + child: TextField( + style: style.copyWith( + fontSize: 16, + color: Color( + 0xff8997a7)), + decoration: + InputDecoration( + focusColor: + Colors.yellow, + contentPadding: + EdgeInsets.all( + 10), + enabledBorder: + OutlineInputBorder( + borderRadius: + BorderRadius + .circular( + 10.0), + borderSide: BorderSide( + color: Colors + .transparent, + width: 1), + ), + focusedBorder: + OutlineInputBorder( + borderSide: BorderSide( + color: Color( + 0xff22c0e8), + width: 1), + borderRadius: + BorderRadius + .circular( + 10.0), + ), + fillColor: + Color(0xffdcdfe3), + filled: true, + ), + ), + ), + ], + ), + ), + ], + ), + Column( + crossAxisAlignment: + CrossAxisAlignment.start, + children: [ + Text( + 'By continuing, you agree to :', + style: style.copyWith( + fontSize: 12, + fontWeight: + FontWeight.bold)), + Text( + '- Dreamjob Terms of Service', + style: style.copyWith( + fontSize: 12, + fontWeight: + FontWeight.bold)), + Text('- GoPay Terms of Service', + style: style.copyWith( + fontSize: 12, + fontWeight: + FontWeight.bold, + height: 2)), + ], + ), + Container( + width: 400, + child: RaisedButton( + shape: RoundedRectangleBorder( + borderRadius: + new BorderRadius.circular( + 10.0)), + color: Color(0xff22c0e8), + onPressed: () { + if (_formKey.currentState + .validate()) { + _formKey.currentState.save(); + } + }, + child: Text('Continue', + style: style.copyWith( + fontSize: 12, + color: Colors.white)), ), - ], - ), + ) + ], ), - ], - ), - Column( - crossAxisAlignment: - CrossAxisAlignment.start, - children: [ - Text('By continuing, you agree to :', - style: style.copyWith( - fontSize: 14, - fontWeight: FontWeight.bold)), - Text('- Dreamjob Terms of Service', - style: style.copyWith( - fontSize: 14, - fontWeight: FontWeight.bold)), - Text('- GoPay Terms of Service', - style: style.copyWith( - fontSize: 14, - fontWeight: FontWeight.bold, - height: 2)), - ], - ), - Container( - width: 400, - padding: - EdgeInsets.symmetric(horizontal: 10), - child: RaisedButton( - shape: RoundedRectangleBorder( - borderRadius: - new BorderRadius.circular(10.0)), - color: Color(0xff22c0e8), - onPressed: () { - if (_formKey.currentState.validate()) { - _formKey.currentState.save(); - } - }, - child: Text('Continue', - style: style.copyWith( - fontSize: 12, - color: Colors.white)), ), - ) - ], + ], + ), ), ), ); diff --git a/lib/src/ui/settings/settings_ui_invite_friends.dart b/lib/src/ui/settings/settings_ui_invite_friends.dart index e96b2c6..4924d7a 100644 --- a/lib/src/ui/settings/settings_ui_invite_friends.dart +++ b/lib/src/ui/settings/settings_ui_invite_friends.dart @@ -1,138 +1,158 @@ import 'package:flutter/material.dart'; import 'package:feather_icons_flutter/feather_icons_flutter.dart'; +import 'package:flutter_svg/flutter_svg.dart'; import 'package:font_awesome_flutter/font_awesome_flutter.dart'; - class UiInviteFriends extends StatefulWidget { @override _UiInviteFriendsState createState() => _UiInviteFriendsState(); } -class _UiInviteFriendsState extends State with SingleTickerProviderStateMixin { - - TextStyle style = TextStyle(fontFamily: 'VarelaRound', fontSize: 20.0, color: Colors.white); +class _UiInviteFriendsState extends State + with SingleTickerProviderStateMixin { + TextStyle style = + TextStyle(fontFamily: 'VarelaRound', fontSize: 20.0, color: Colors.white); @override Widget build(BuildContext context) { - -return Container( - decoration: new BoxDecoration( - image: DecorationImage( - image: AssetImage('assets/vector-5.png'), - fit: BoxFit.cover - ) - ), - - child: Scaffold( - backgroundColor: Colors.transparent, - appBar: AppBar( - title: Text('Invite Friends', style: style.copyWith(color: Colors.white, fontSize: 14, letterSpacing: 1)), - automaticallyImplyLeading: true, - leading: IconButton( - onPressed: () { - Navigator.pop(context,true); - }, - icon: Icon(FeatherIcons.chevronLeft, color: Colors.white, size: 16)), - elevation: 0, - backgroundColor: Colors.transparent, - ), - body: LayoutBuilder( - builder: (BuildContext context, BoxConstraints viewportConstraints) { - return Container( + return Stack( + children: [ + SvgPicture.asset( + 'assets/vector-5.svg', + fit: BoxFit.cover, + width: MediaQuery.of(context).size.width, height: MediaQuery.of(context).size.height, - child: Stack( - alignment: AlignmentDirectional.bottomEnd, - children: [ - Column( - crossAxisAlignment: CrossAxisAlignment.start, - children: [ - Padding( - padding: EdgeInsets.only(top: 20, left: 30, right: 30), - child: Column( - crossAxisAlignment: CrossAxisAlignment.start, - children: [ - Text('Invite Friends', style: style.copyWith(fontSize: 25, fontWeight: FontWeight.bold)), - Text('Invite your friends to join Dreamjob', style: style.copyWith(fontSize: 16, height: 2)), - ],), - ), - - Container( - margin: EdgeInsets.only(top: 60), - padding: EdgeInsets.symmetric(horizontal: 50), - child: Column( - children: [ - Text('Invite your friends to make dreams come true', textAlign: TextAlign.center, style: style.copyWith(fontSize: 22, fontWeight: FontWeight.bold)), - ],), - ), - - Center( - child: Container( - width: 300, - padding: EdgeInsets.only(top: 50), - - child: RaisedButton( - padding: EdgeInsets.only(top: 15, bottom: 15, right: 40, left: 50), - shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(30)), - onPressed: (){}, - color: Color(0xff2d67a5), - child: Row(children: [ Icon(FontAwesomeIcons.facebookF, color: Colors.white, size: 30), - Text(' Share on Facebook', style: style.copyWith(color: Colors.white, fontSize: 16)), - ],), - - ), - ), - ), - SizedBox( - height: 20 - ), - Center( - child: Container( - width: 300, - child: RaisedButton( - padding: EdgeInsets.only(top: 18, bottom: 18, right: 40, left: 50), - shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(30)), - onPressed: (){}, - color: Colors.white, - child: Row(children: [ - Icon(FeatherIcons.link, color: Color(0xff22c0e8), size: 25), - Text(' Share Invitation Link', style: style.copyWith(color: Color(0xff22c0e8), fontSize: 16)), - ],), - - ), - ), - ), - ],), - Container( - height: 150, - width: MediaQuery.of(context).size.width, - child: Stack( - alignment: Alignment(-0.7, 0.3), - children: [ - Image.asset('assets/vector-8.png', scale: 5,) - ], - ), - ), - Image.asset('assets/vector-10.png'), - Container( - height: 300, - width: MediaQuery.of(context).size.width, - child: Stack( - alignment: Alignment(0.9, 0.8), - children: [ - Image.asset('assets/vector-9.png', scale: 5) - ], - ), - ), - ], + ), + Scaffold( + backgroundColor: Colors.transparent, + appBar: AppBar( + title: Text('Invite Friends', + style: style.copyWith( + color: Colors.white, fontSize: 14, letterSpacing: 1)), + automaticallyImplyLeading: true, + leading: IconButton( + onPressed: () { + Navigator.pop(context, true); + }, + icon: Icon(FeatherIcons.chevronLeft, + color: Colors.white, size: 16)), + elevation: 0, + backgroundColor: Colors.transparent, ), - - - - ); - } - ), - ), - + body: LayoutBuilder(builder: + (BuildContext context, BoxConstraints viewportConstraints) { + return Container( + height: MediaQuery.of(context).size.height, + child: Stack( + alignment: AlignmentDirectional.bottomEnd, + children: [ + Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Padding( + padding: EdgeInsets.only(top: 20, left: 30, right: 30), + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Text('Invite Friends', + style: style.copyWith( + fontSize: 25, fontWeight: FontWeight.bold)), + Text('Invite your friends to join Dreamjob', + style: style.copyWith(fontSize: 16, height: 2)), + ], + ), + ), + Container( + margin: EdgeInsets.only(top: 60), + padding: EdgeInsets.symmetric(horizontal: 50), + child: Column( + children: [ + Text('Invite your friends to make dreams come true', + textAlign: TextAlign.center, + style: style.copyWith( + fontSize: 22, fontWeight: FontWeight.bold)), + ], + ), + ), + Center( + child: Container( + width: 250, + padding: EdgeInsets.only(top: 50), + child: RaisedButton( + padding: EdgeInsets.only( + top: 10, bottom: 10, right: 30, left: 40), + shape: RoundedRectangleBorder( + borderRadius: BorderRadius.circular(30)), + onPressed: () {}, + color: Color(0xff2d67a5), + child: Row( + children: [ + Icon(FontAwesomeIcons.facebookF, + color: Colors.white, size: 25), + Text(' Share on Facebook', + style: style.copyWith( + color: Colors.white, fontSize: 14)), + ], + ), + ), + ), + ), + SizedBox(height: 20), + Center( + child: Container( + width: 250, + child: RaisedButton( + padding: EdgeInsets.only( + top: 10, bottom: 10, right: 30, left: 40), + shape: RoundedRectangleBorder( + borderRadius: BorderRadius.circular(30)), + onPressed: () {}, + color: Colors.white, + child: Row( + children: [ + Icon(FeatherIcons.link, + color: Color(0xff22c0e8), size: 25), + Text(' Share Invitation Link', + style: style.copyWith( + color: Color(0xff22c0e8), + fontSize: 14)), + ], + ), + ), + ), + ), + ], + ), + Container( + height: 150, + width: MediaQuery.of(context).size.width, + child: Stack( + alignment: Alignment(-0.7, 0.3), + children: [ + Image.asset( + 'assets/vector-8.png', + scale: 5, + ) + ], + ), + ), + Image.asset('assets/vector-10.png'), + Container( + height: 300, + width: MediaQuery.of(context).size.width, + child: Stack( + alignment: Alignment(0.9, 0.8), + children: [ + Image.asset('assets/vector-9.png', scale: 5) + ], + ), + ), + ], + ), + ); + }), + ), + ], ); } -} \ No newline at end of file +} diff --git a/spaceweb/test/widget_test.dart b/test/widget_test.dart similarity index 92% rename from spaceweb/test/widget_test.dart rename to test/widget_test.dart index 1e45c12..fb744da 100644 --- a/spaceweb/test/widget_test.dart +++ b/test/widget_test.dart @@ -8,12 +8,12 @@ import 'package:flutter/material.dart'; import 'package:flutter_test/flutter_test.dart'; -import 'package:spaceweb/main.dart'; +import 'package:space/main.dart'; void main() { testWidgets('Counter increments smoke test', (WidgetTester tester) async { // Build our app and trigger a frame. - await tester.pumpWidget(MyApp()); + await tester.pumpWidget(DreamJobApp()); // Verify that our counter starts at 0. expect(find.text('0'), findsOneWidget);