Skip to content

Commit

Permalink
Fix the displayed courses state and add swipe gesture to pin-unpin a …
Browse files Browse the repository at this point in the history
…course (#248)

* Remove `lastStream` in course card

* Use `PopScope` to fix swiping left taking to login screen.

* Change Pinned course to use `CourseCard`

* fix navigation to `public` and `MyCourses`

* fix `RefreshIndicator` in course overview course

* fix `RefreshIndicator` all views

* linting

* fix `livenow` all views

* fix linting

* add `updateDisplayPinnedCourse` fo the pinned view

* Add sliding to pin and upin

* fix the `drawer` appearing when swipping from left in protrait mode.

* Use `DrawerMotion()` in the slide

* Update integer types to be consistent with API

---------

Co-authored-by: carlobortolan <[email protected]>
  • Loading branch information
GravityDarkLab and carlobortolan authored Jan 27, 2024
1 parent b2b1de2 commit d44ae60
Show file tree
Hide file tree
Showing 50 changed files with 5,493 additions and 2,709 deletions.
5,298 changes: 3,535 additions & 1,763 deletions lib/base/networking/api/gocast/api_v2.pb.dart

Large diffs are not rendered by default.

17 changes: 10 additions & 7 deletions lib/base/networking/api/gocast/api_v2.pbenum.dart
Original file line number Diff line number Diff line change
Expand Up @@ -14,21 +14,24 @@ import 'dart:core' as $core;
import 'package:protobuf/protobuf.dart' as $pb;

class UserSettingType extends $pb.ProtobufEnum {
static const UserSettingType PREFERRED_NAME = UserSettingType._(0, _omitEnumNames ? '' : 'PREFERRED_NAME');
static const UserSettingType GREETING = UserSettingType._(1, _omitEnumNames ? '' : 'GREETING');
static const UserSettingType CUSTOM_PLAYBACK_SPEEDS = UserSettingType._(2, _omitEnumNames ? '' : 'CUSTOM_PLAYBACK_SPEEDS');

static const $core.List<UserSettingType> values = <UserSettingType> [
static const UserSettingType PREFERRED_NAME =
UserSettingType._(0, _omitEnumNames ? '' : 'PREFERRED_NAME');
static const UserSettingType GREETING =
UserSettingType._(1, _omitEnumNames ? '' : 'GREETING');
static const UserSettingType CUSTOM_PLAYBACK_SPEEDS =
UserSettingType._(2, _omitEnumNames ? '' : 'CUSTOM_PLAYBACK_SPEEDS');

static const $core.List<UserSettingType> values = <UserSettingType>[
PREFERRED_NAME,
GREETING,
CUSTOM_PLAYBACK_SPEEDS,
];

static final $core.Map<$core.int, UserSettingType> _byValue = $pb.ProtobufEnum.initByValue(values);
static final $core.Map<$core.int, UserSettingType> _byValue =
$pb.ProtobufEnum.initByValue(values);
static UserSettingType? valueOf($core.int value) => _byValue[value];

const UserSettingType._($core.int v, $core.String n) : super(v, n);
}


const _omitEnumNames = $core.bool.fromEnvironment('protobuf.omit_enum_names');
Loading

0 comments on commit d44ae60

Please sign in to comment.