-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: added conditional import to support build for mobile
- Loading branch information
1 parent
84f07b2
commit 127a715
Showing
3 changed files
with
28 additions
and
20 deletions.
There are no files selected for viewing
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
21 changes: 21 additions & 0 deletions
21
surrealdb_console/lib/surrealdb_console_widget_mobile.dart
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import 'package:flutter/material.dart'; | ||
|
||
class SurrealdbConsoleWidget extends StatelessWidget { | ||
const SurrealdbConsoleWidget({ | ||
required this.endpoint, | ||
this.ns, | ||
this.db, | ||
super.key, | ||
}); | ||
|
||
final String endpoint; | ||
final String? ns; | ||
final String? db; | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
return const Center( | ||
child: Text('Surrealdb Console is working in web only!'), | ||
); | ||
} | ||
} |
File renamed without changes.