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
https://onedrive.live.com/?authkey=%21ABRgmNAPtpE8n7E&cid=B70386FBC114FFC7&id=B70386FBC114FFC7%215152&parId=root&o=OneUp | |
https://imgur.com/a/hsIw1hx (Screenshots) | |
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
public class SandwichAdapter extends ArrayAdapter<Sandwich> { | |
public SandwichAdapter(Context context, List<Sandwich> sandwiches) { | |
super(context, 0, sandwiches); | |
} | |
@Override | |
@NonNull | |
public View getView(int position, View convertView, @NonNull ViewGroup parent) { |
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
<?xml version="1.0" encoding="utf-8"?> | |
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
xmlns:tools="http://schemas.android.com/tools" | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:orientation="horizontal" | |
tools:ignore="UseCompoundDrawables"> | |
<ImageView | |
android:id="@+id/sandwich_image" |
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
parseSandwichList(); | |
SandwichAdapter sandwichAdapter = new SandwichAdapter(this, parsedSandwichesList); | |
ListView listView = findViewById(R.id.sandwiches_listview); | |
listView.setAdapter(sandwichAdapter); | |
listView.setOnItemClickListener(new AdapterView.OnItemClickListener() { | |
@Override | |
public void onItemClick(AdapterView<?> parent, View view, int position, long id) { |
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:navigation_bar_web/pages/home_page.dart'; | |
void main() { | |
runApp(MyApp()); | |
} | |
class MyApp extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { |
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
class HomePage extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return Center( | |
child: Container( | |
child: Text( | |
'Home Page', | |
style: TextStyle(fontSize: 30), | |
), | |
), |
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
class AppView extends StatelessWidget { | |
final Widget child; | |
const AppView({@required this.child}); | |
@override | |
Widget build(BuildContext context) { | |
return Scaffold( | |
backgroundColor: Colors.white, |
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 String routeHome = '/'; | |
const String routeAbout = '/about'; | |
const String routeContacts = '/contacts'; | |
final navKey = new GlobalKey<NavigatorState>(); |
OlderNewer