Giter Site home page Giter Site logo

cupids-auto-detailing's People

Contributors

deseray82 avatar

Watchers

 avatar

cupids-auto-detailing's Issues

Settings

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
}
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.