deseray82 / cupids-auto-detailing Goto Github PK
View Code? Open in Web Editor NEWApp for our clients to personalize their auto detailing experience
App for our clients to personalize their auto detailing experience
import 'package:flutter/material.dart';
import 'package:intro_views_flutter/Models/page_view_model.dart';
import 'package:intro_views_flutter/intro_views_flutter.dart';
/// this class uses this library : intro_views_flutter
/// the link to it : https://pub.dev/packages/intro_views_flutter#-installing-tab-
class IntroViewsPage extends StatelessWidget {
static const routeName = '/IntroViewsPage';
/// -----------------------------------------------
/// making list of pages needed to pass in IntroViewsFlutter constructor.
/// -----------------------------------------------
final pages = [
/// -----------------------------------------------
/// PageViewModel dart class for storing data in it
/// -----------------------------------------------
PageViewModel(
pageColor: const Color(0xFF03A9F4),
// iconImageAssetPath: 'assets/air-hostess.png',
/// -----------------------------------------------
/// bubble Image for indicator.
/// -----------------------------------------------
bubble: Image.asset('assets/images/air-hostess.png'),
/// -----------------------------------------------
/// Text details.
/// -----------------------------------------------
body: Text(
'Haselfree booking of flight tickets with full refund on cancelation',
),
/// -----------------------------------------------
/// Text header .
/// -----------------------------------------------
title: Text(
'Flights',
),
titleTextStyle: TextStyle(fontFamily: 'MyFont', color: Colors.white),
bodyTextStyle: TextStyle(fontFamily: 'MyFont', color: Colors.white),
/// -----------------------------------------------
/// Main image.
/// -----------------------------------------------
mainImage: Image.asset(
'assets/images/airplane.png',
height: 285.0,
width: 285.0,
alignment: Alignment.center,
)),
PageViewModel(
pageColor: const Color(0xFF8BC34A),
iconImageAssetPath: 'assets/images/waiter.png',
body: Text(
'We work for the comfort , enjoy your stay at our beautiful hotels',
),
title: Text('Hotels'),
mainImage: Image.asset(
'assets/images/hotel.png',
height: 285.0,
width: 285.0,
alignment: Alignment.center,
),
titleTextStyle: TextStyle(fontFamily: 'MyFont', color: Colors.white),
bodyTextStyle: TextStyle(fontFamily: 'MyFont', color: Colors.white),
),
PageViewModel(
pageColor: const Color(0xFF607D8B),
iconImageAssetPath: 'assets/images/taxi-driver.png',
body: Text(
'Easy cab booking at your doorstep with cashless payment system',
),
title: Text('Cabs'),
mainImage: Image.asset(
'assets/images/taxi.png',
height: 285.0,
width: 285.0,
alignment: Alignment.center,
),
titleTextStyle: TextStyle(fontFamily: 'MyFont', color: Colors.white),
bodyTextStyle: TextStyle(fontFamily: 'MyFont', color: Colors.white),
),
];
@OverRide
Widget build(BuildContext context) {
/// -----------------------------------------------
/// Build main content with MaterialApp widget.
/// -----------------------------------------------
return MaterialApp(
debugShowCheckedModeBanner: false,
title: 'IntroViews Flutter', //title of app
theme: ThemeData(
primarySwatch: Colors.blue,
), //ThemeData
home: Builder(
/// -----------------------------------------------
/// Build Into with IntroViewsFlutter widget.
/// -----------------------------------------------
builder: (context) => IntroViewsFlutter(
pages,
showNextButton: true,
showBackButton: true,
onTapDoneButton: () {
Navigator.push(
context,
MaterialPageRoute(
builder: (context) => HomePage_(),
), //MaterialPageRoute
);
},
pageButtonTextStyles: TextStyle(
color: Colors.white,
fontSize: 18.0,
),
), //IntroViewsFlutter
), //Builder
); //Material App
}
}
/// Home Page after intro interface.
class HomePage_ extends StatelessWidget {
@OverRide
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text('Home'),
), //Appbar
body: Center(
child: Text("This is the home page of the app"),
), //Center
); //Scaffold
}
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.