This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import '../widgets/change_vehicle_card_widget.dart'; | |
import '../widgets/continue_button.dart'; | |
class ChangeVehicleScreen extends StatefulWidget { | |
const ChangeVehicleScreen({ | |
super.key, | |
}); | |
@override | |
State<ChangeVehicleScreen> createState() => _ChangeVehicleScreenState(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/rendering.dart'; | |
class SliverGridDelegateWithFixedCrossAxisCountAndFixedHeight | |
extends SliverGridDelegate { | |
const SliverGridDelegateWithFixedCrossAxisCountAndFixedHeight({ | |
required this.crossAxisCount, | |
this.mainAxisSpacing = 0.0, | |
this.crossAxisSpacing = 0.0, | |
this.height = 56.0, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/material.dart'; | |
import 'package:flutter_webview_plugin/flutter_webview_plugin.dart'; | |
class HomePage extends StatefulWidget { | |
//String useragent = | |
// "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.106 Safari/537.36"; | |
@override | |
_HomePageState createState() => _HomePageState(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'dart:convert'; | |
import 'package:http/http.dart'as http; | |
class AppException implements Exception { | |
final _message; | |
final _prefix; | |
AppException([this._message, this._prefix]); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/material.dart'; | |
import 'package:flutter_riverpod/flutter_riverpod.dart'; | |
import 'package:mutation_app/screens/theme/StrorageManager.dart'; | |
//providor | |
final themeProvider = ChangeNotifierProvider<ThemeNotifier>((_)=> ThemeNotifier()); | |
class ThemeNotifier with ChangeNotifier { | |
final ThemeData darkTheme = ThemeData( | |
primarySwatch: Colors.grey, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:collection/collection.dart'; | |
import 'package:flutter/material.dart'; | |
import 'package:flutter_riverpod/all.dart'; | |
import 'package:ui_design/Buyer/models/itemModel.dart'; | |
final cartNotifier = ChangeNotifierProvider<MyStore>((_) => MyStore()); | |
class MyStore extends ChangeNotifier { | |
List<Product> productItem = []; | |
List<Product> basketItem = []; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'dart:convert'; | |
void main() { | |
String dateFormatter(DateTime date) { | |
dynamic dayData = | |
'{ "1" : "Mon", "2" : "Tue", "3" : "Wed", "4" : "Thur", "5" : "Fri", "6" : "Sat", "7" : "Sun" }'; | |
dynamic monthData = | |
'{ "1" : "Jan", "2" : "Feb", "3" : "Mar", "4" : "Apr", "5" : "May", "6" : "June", "7" : "Jul", "8" : "Aug", "9" : "Sep", "10" : "Oct", "11" : "Nov", "12" : "Dec" }'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const express = require('express'); | |
const mongoose = require('mongoose'); | |
const bodyParser = require('body-Parser'); | |
const ejs = require('ejs'); | |
const app = express(); | |
app.set('view engine', 'ejs'); | |
app.use(express.static("public")); | |
app.use(bodyParser.urlencoded({ |
NewerOlder