This file contains hidden or 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
'use strict'; | |
const { Contract } = require('fabric-contract-api'); | |
class MyContract extends Contract { | |
//add a member along with their email, name, address, and number | |
async addMember(ctx, email, name, address, phoneNumber) { | |
let member = { | |
name: name, | |
address: address, |
This file contains hidden or 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'; | |
class ExpansionTileSample extends StatefulWidget { | |
@override | |
ExpansionTileSampleState createState() { | |
return new ExpansionTileSampleState(); | |
} | |
} | |
class ExpansionTileSampleState extends State<ExpansionTileSample> { |
This file contains hidden or 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
public class SwipeRefreshLayoutToggleScrollListener extends RecyclerView.OnScrollListener { | |
private List<RecyclerView.OnScrollListener> mScrollListeners = new ArrayList<RecyclerView.OnScrollListener>(); | |
private int mExpectedVisiblePosition = 0; | |
private SwipeRefreshLayout mSwipeLayout; | |
public SwipeRefreshLayoutToggleScrollListener(SwipeRefreshLayout swipeLayout) { | |
mSwipeLayout = swipeLayout; | |
} | |
public void addScrollListener(RecyclerView.OnScrollListener listener){ | |
mScrollListeners.add(listener); |