Merge branch 'dev' of https://gitlab.com/Didvan/didvan-app into dev
This commit is contained in:
commit
56370e443f
|
|
@ -17,6 +17,7 @@ class ActionSheetUtils {
|
|||
|
||||
static Future<void> showLogoLoadingIndicator() async {
|
||||
await showDialog(
|
||||
barrierDismissible: false,
|
||||
context: context,
|
||||
builder: (context) => Padding(
|
||||
padding: EdgeInsets.symmetric(
|
||||
|
|
|
|||
|
|
@ -76,7 +76,9 @@ class _PasswordInputState extends State<PasswordInput> {
|
|||
final token = await state.login(userProvider);
|
||||
if (token != null) {
|
||||
log(token);
|
||||
ActionSheetUtils.showLogoLoadingIndicator();
|
||||
await ServerDataProvider.getData();
|
||||
ActionSheetUtils.pop();
|
||||
Navigator.of(context).pushReplacementNamed(Routes.home);
|
||||
_showResetPasswordDialog();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -145,8 +145,8 @@ class _StudioDetailsState extends State<StudioDetails> {
|
|||
child: Stack(
|
||||
children: [
|
||||
WebView(
|
||||
backgroundColor:
|
||||
Theme.of(context).colorScheme.black,
|
||||
zoomEnabled: false,
|
||||
backgroundColor: Colors.black,
|
||||
allowsInlineMediaPlayback: true,
|
||||
initialUrl: Uri.dataFromString(
|
||||
'''
|
||||
|
|
|
|||
|
|
@ -141,33 +141,35 @@ class StudioDetailsWidget extends StatelessWidget {
|
|||
),
|
||||
);
|
||||
}
|
||||
return Column(
|
||||
children: [
|
||||
if (state.studio.relatedContents.isEmpty)
|
||||
for (var i = 0; i < 3; i++)
|
||||
return SingleChildScrollView(
|
||||
child: Column(
|
||||
children: [
|
||||
if (state.studio.relatedContents.isEmpty)
|
||||
for (var i = 0; i < 3; i++)
|
||||
Padding(
|
||||
padding: const EdgeInsets.only(
|
||||
bottom: 8,
|
||||
left: 16,
|
||||
right: 16,
|
||||
),
|
||||
child: MultitypeOverview.placeholder,
|
||||
),
|
||||
for (var i = 0;
|
||||
i < state.studio.relatedContents.length;
|
||||
i++)
|
||||
Padding(
|
||||
padding: const EdgeInsets.only(
|
||||
bottom: 8,
|
||||
left: 16,
|
||||
right: 16,
|
||||
),
|
||||
child: MultitypeOverview.placeholder,
|
||||
child: MultitypeOverview(
|
||||
item: state.studio.relatedContents[i],
|
||||
onMarkChanged: (id, value) {},
|
||||
),
|
||||
),
|
||||
for (var i = 0;
|
||||
i < state.studio.relatedContents.length;
|
||||
i++)
|
||||
Padding(
|
||||
padding: const EdgeInsets.only(
|
||||
bottom: 8,
|
||||
left: 16,
|
||||
right: 16,
|
||||
),
|
||||
child: MultitypeOverview(
|
||||
item: state.studio.relatedContents[i],
|
||||
onMarkChanged: (id, value) {},
|
||||
),
|
||||
),
|
||||
],
|
||||
],
|
||||
),
|
||||
);
|
||||
},
|
||||
),
|
||||
|
|
|
|||
|
|
@ -97,22 +97,23 @@ class _StudioSliderState extends State<StudioSlider> {
|
|||
),
|
||||
),
|
||||
),
|
||||
Container(
|
||||
height: 52,
|
||||
width: 52,
|
||||
decoration: BoxDecoration(
|
||||
shape: BoxShape.circle,
|
||||
color: Theme.of(context)
|
||||
.colorScheme
|
||||
.secondary
|
||||
.withOpacity(0.7),
|
||||
if (state.videosSelected)
|
||||
Container(
|
||||
height: 52,
|
||||
width: 52,
|
||||
decoration: BoxDecoration(
|
||||
shape: BoxShape.circle,
|
||||
color: Theme.of(context)
|
||||
.colorScheme
|
||||
.secondary
|
||||
.withOpacity(0.7),
|
||||
),
|
||||
child: Icon(
|
||||
DidvanIcons.play_solid,
|
||||
color: Theme.of(context).colorScheme.white,
|
||||
size: 48,
|
||||
),
|
||||
),
|
||||
child: Icon(
|
||||
DidvanIcons.play_solid,
|
||||
color: Theme.of(context).colorScheme.white,
|
||||
size: 48,
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
|
|
|
|||
Loading…
Reference in New Issue