Skip to content

Commit

Permalink
onboarding added (lohanidamodar#10)
Browse files Browse the repository at this point in the history
* onboarding added

* commited uncommeted files

* scrnct

* bug
  • Loading branch information
cimplesid authored and lohanidamodar committed Aug 8, 2019
1 parent c02796f commit 72655fb
Show file tree
Hide file tree
Showing 6 changed files with 58 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ The code for Springy Widget is taken and refactored from (https://github.com/mat

(1 - is inspired from https://www.uplabs.com/posts/smart-wallet-onboarding)

<img height="480px" src="screenshots/intro4.gif"> <img height="480px" src="screenshots/onboard3.gif"> <img height="480px" src="screenshots/onboard2.gif"> <img height="480px" src="screenshots/onboarding1.gif">
<img height="480px" src="screenshots/intro4.gif"> <img height="480px" src="screenshots/onboard3.gif"> <img height="480px" src="screenshots/onboard2.gif"> <img height="480px" src="screenshots/onboarding1.gif"><img height="480px" src="screenshots/i5.gif">

## miscellaneous widgets

Expand Down
Binary file added assets/flare/bus.flr
Binary file not shown.
47 changes: 47 additions & 0 deletions lib/src/pages/onboarding/intro5.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
import 'package:flutter/material.dart';
import 'package:flare_flutter/flare_actor.dart';

class Intro5 extends StatefulWidget {
static final String path = "lib/src/pages/onboarding/intro5.dart";
@override
_Intro5State createState() => _Intro5State();
}

const brightYellow = Color(0xFFFFD300);
const darkYellow = Color(0xFFFFB900);

class _Intro5State extends State<Intro5> {
@override
Widget build(BuildContext context) {
return Scaffold(
backgroundColor: brightYellow,
body: Column(
children: [
Flexible(
flex: 8,
child: FlareActor(
'assets/flare/bus.flr',
alignment: Alignment.center,
fit: BoxFit.contain,
animation: 'driving',
),
),
Flexible(
flex: 2,
child: RaisedButton(
color: darkYellow,
elevation: 4,
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(50)),
child: Text(
'Tap here to proceed',
style: TextStyle(color: Colors.black54),
),
onPressed: () => Navigator.pop(context),
),
),
],
),
);
}
}
8 changes: 4 additions & 4 deletions lib/src/widgets/main_menu.dart
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ import 'package:flutter_ui_challenges/src/pages/login/login6.dart';
import 'package:flutter_ui_challenges/src/pages/login/signup2.dart';
import 'package:flutter_ui_challenges/src/pages/ecommerce/ecommerce5.dart';
import 'package:flutter_ui_challenges/src/pages/misc/navybar.dart';
import 'package:flutter_ui_challenges/src/pages/onboarding/intro5.dart';
import 'package:flutter_ui_challenges/src/pages/onboarding/intro5.dart' as prefix0;
import 'package:flutter_ui_challenges/src/pages/onboarding/landing1.dart';
import 'package:flutter_ui_challenges/src/pages/navigation/drawer1.dart';
import 'package:flutter_ui_challenges/src/pages/navigation/drawer2.dart';
Expand Down Expand Up @@ -48,10 +50,8 @@ import 'package:flutter_ui_challenges/src/pages/ecommerce/cart1.dart';
import 'package:flutter_ui_challenges/src/pages/ecommerce/confirm_order1.dart';
import 'package:flutter_ui_challenges/src/pages/ecommerce/ecommerce1.dart';
import 'package:flutter_ui_challenges/src/pages/ecommerce/ecommerce2.dart';
import 'package:flutter_ui_challenges/src/pages/ecommerce/ecommerce4.dart';
import 'package:flutter_ui_challenges/src/pages/ecommerce/ecommerce_detail1.dart';
import 'package:flutter_ui_challenges/src/pages/ecommerce/ecommerce_detail2.dart';
import 'package:flutter_ui_challenges/src/pages/ecommerce/ecommerce_detail3.dart';
import 'package:flutter_ui_challenges/src/pages/food/cake.dart';
import 'package:flutter_ui_challenges/src/pages/food/fdhome.dart';
import 'package:flutter_ui_challenges/src/pages/food/recipe_details.dart';
Expand Down Expand Up @@ -182,8 +182,7 @@ class _MainMenuState extends State<MainMenu> {
path: CheckAnswersPage.path),
]),
MenuItem(title: "Todo", icon: FontAwesomeIcons.tasks, items: [
SubMenuItem("Todo Week View", TodoTwoPage(),
path: TodoTwoPage.path),
SubMenuItem("Todo Week View", TodoTwoPage(), path: TodoTwoPage.path),
SubMenuItem("Todo Home One", TodoHomeOnePage(),
path: TodoHomeOnePage.path),
]),
Expand Down Expand Up @@ -213,6 +212,7 @@ class _MainMenuState extends State<MainMenu> {
path: SmartWalletOnboardingPage.path),
SubMenuItem("Onboarding 2", IntroTwoPage(), path: IntroTwoPage.path),
SubMenuItem("Onboarding 3", IntroThreePage(), path: IntroThreePage.path),
SubMenuItem("Onboarding 5", Intro5(),path: prefix0.Intro5.path),
]),
MenuItem(title: "Miscllaneous", items: [
SubMenuItem("Form Elements", FormElementPage(),
Expand Down
6 changes: 6 additions & 0 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@ dependencies:
bottomreveal: ^1.0.0
animated_floatactionbuttons: ^0.1.0
share: ^0.6.2
flare_flutter:
git:
url: git://github.com/2d-inc/Flare-Flutter.git
ref: 6606b73bf4f7b87105a6febfbb5f2167cf8b8977
path: flare_flutter

dev_dependencies:
flutter_test:
Expand Down Expand Up @@ -61,6 +66,7 @@ flutter:
- assets/hotel/
- assets/food/
- assets/icon/
- assets/flare/
- lib/src/pages/animations/
- lib/src/pages/animations/animation1/
- lib/src/pages/blog/
Expand Down
Binary file added screenshots/i5.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 72655fb

Please sign in to comment.