bottom-sheet
Flutter: Bottom sheet with TextField/TextFormField
You will have to provide a specific width to the TextField, simply provide width in your Container or wrap your Column in Expanded. Solution 1 Container( width: 100, // do it in both Container child: TextField(), ), Solution 2 Row( mainAxisAlignment: MainAxisAlignment.center, crossAxisAlignment: CrossAxisAlignment.center, children: <Widget>[ Expanded( // wrap your Column in Expanded child: Column( … Read more
Android BottomSheetDialogFragment does not expand completely
Using this code in onCreateView. getDialog().setOnShowListener(new DialogInterface.OnShowListener() { @Override public void onShow(DialogInterface dialog) { BottomSheetDialog d = (BottomSheetDialog) dialog; FrameLayout bottomSheet = (FrameLayout) d.findViewById(R.id.design_bottom_sheet); CoordinatorLayout coordinatorLayout = (CoordinatorLayout) bottomSheet.getParent(); BottomSheetBehavior bottomSheetBehavior = BottomSheetBehavior.from(bottomSheet); bottomSheetBehavior.setPeekHeight(bottomSheet.getHeight()); coordinatorLayout.getParent().requestLayout(); } });
Cannot access ‘androidx.lifecycle.HasDefaultViewModelProviderFactory’ which is a supertype of ‘FavoriteBottomDialogFragment’. Check your module cla
I experienced this exact same problem today, and was able to solve. Turns out the issue was a version mismatch between the expected version of androidx.lifecycle:lifecycle-viewmodel used by the module where the “failing” class is and a later version in some other dependent code. So in my case, my module was using version 2.1.0 of … Read more
BottomNavigationView is not full width
The BottomNavigationView is not displayed as full width. It is not supposed to. According to design guidelines the width of an action can vary between 80dp and 168dp. The two actions you have defined are not sufficient to fill the whole area horizontally. (As a side note, also according to guidelines the view should contain … Read more
BottomSheetDialogFragment – Allow scrolling child
RecyclerView scrolling problem in BottomSheetDialog can be solved by this way. from: https://android.jlelse.eu/recyclerview-within-nestedscrollview-scrolling-issue-3180b5ad2542 <?xml version=”1.0″ encoding=”utf-8″?> <LinearLayout xmlns:android=”http://schemas.android.com/apk/res/android” android:layout_width=”match_parent” android:layout_height=”match_parent” android:orientation=”vertical”> <android.support.v4.widget.NestedScrollView android:id=”@+id/nestedScrollView” android:layout_width=”match_parent” android:layout_height=”match_parent” android:overScrollMode=”never”> <LinearLayout android:layout_width=”match_parent” android:layout_height=”wrap_content” android:orientation=”vertical”> <android.support.v7.widget.RecyclerView android:id=”@+id/recyclerView” android:layout_width=”match_parent” android:layout_height=”wrap_content” /> </LinearLayout> </android.support.v4.widget.NestedScrollView> </LinearLayout>